# Module:   events
# Date:     3rd February 2009
# Author:   James Mills, prologic at shortcircuit dot net dot au

"""Events

This module implements the necessary Events needed.
"""

from circuits import Event


class WebEvent(Event):

    channels = ("web",)

    success = True
    failure = True


class Request(WebEvent):
    """Request(WebEvent) -> Request WebEvent

    args: request, response
    """


class Response(WebEvent):
    """Response(WebEvent) -> Response WebEvent

    args: request, response
    """


class Stream(WebEvent):
    """Stream(WebEvent) -> Stream WebEvent

    args: request, response
    """

# Module:   events
# Date:     3rd February 2009
# Author:   James Mills, prologic at shortcircuit dot net dot au

"""Events

This module implements the necessary Events needed.
"""

from circuits import Event

class WebEvent(Event):

    channels = ("web",)


class Request(WebEvent):
    """Request(WebEvent) -> Request WebEvent

    args: request, response
    """

    success = True
    failure = True


class Response(WebEvent):
    """Response(WebEvent) -> Response WebEvent

    args: request, response
    """

    success = True
    failure = True


class Stream(WebEvent):
    """Stream(WebEvent) -> Stream WebEvent

    args: request, response
    """

    success = True
    failure = True

--- 
+++ 
@@ -9,9 +9,13 @@
 
 from circuits import Event
 
+
 class WebEvent(Event):
 
     channels = ("web",)
+
+    success = True
+    failure = True
 
 
 class Request(WebEvent):
@@ -20,9 +24,6 @@
     args: request, response
     """
 
-    success = True
-    failure = True
-
 
 class Response(WebEvent):
     """Response(WebEvent) -> Response WebEvent
@@ -30,15 +31,9 @@
     args: request, response
     """
 
-    success = True
-    failure = True
-
 
 class Stream(WebEvent):
     """Stream(WebEvent) -> Stream WebEvent
 
     args: request, response
     """
-
-    success = True
-    failure = True
Move success/failure properties into WebEvent base class.
