PageRenderTime 19ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/circuits/web/events.py

https://bitbucket.org/prologic/circuits/
Python | 49 lines | 14 code | 15 blank | 20 comment | 0 complexity | 65ed298fc57cce6f439f08305c8db884 MD5 | raw file
 1# Module:   events
 2# Date:     3rd February 2009
 3# Author:   James Mills, prologic at shortcircuit dot net dot au
 4
 5
 6"""Events
 7
 8This module implements the necessary Events needed.
 9"""
10
11
12from circuits import Event
13
14
15class request(Event):
16    """request(Event) -> request Event
17
18    args: request, response
19    """
20
21    success = True
22    failure = True
23    complete = True
24
25
26class response(Event):
27    """response(Event) -> response Event
28
29    args: request, response
30    """
31
32    success = True
33    failure = True
34    complete = True
35
36
37class stream(Event):
38    """stream(Event) -> stream Event
39
40    args: request, response
41    """
42
43    success = True
44    failure = True
45    complete = True
46
47
48class terminate(Event):
49    """terminate Event"""