# Comet VOEvent Broker
# Interfaces.
# John Swinbank, <swinbank@transientkp.org>, 2012.

from zope.interface import Interface, Attribute

class IHandler(Interface):
    """
    Called to process VOEvents which have been received.
    """
    def __call__(event):
        """
        Process the event.
        """

    name = Attribute("Name of this handler.")

class IValidator(Interface):
    """
    Called to validate VOEvents before handling.
    """
    def __call__(event):
        """
        Process the event.
        """

@@ -504,29 +504,135 @@
 ocess the event.
+%0A%0A        If the event validates, we return normally. If the event is invalid,%0A        raise an exception.
 %0A        %22%22%22%0A

Clarify semantics of IValidator