Logo Search packages:      
Sourcecode: scalemail version File versions

igone.py

from zope.interface import Interface

class IRealWorld(Interface):
    def currentTime(self):
        """Return the current time, as seconds since epoch."""
        pass

    def uniqueIdentifier(self):
        """
        @return: A unique identifier for this process instance.

        The identifier must not contain a period.

        The process PID is often a good choice for blocking
        applications; e.g. twisted applications need something
        stronger.
        """
        pass

00020 class RateExceededError(Exception):
    """Sender %(sender)s rate limit exceeded"""

    def __init__(self, sender):
        Exception.__init__(self)
        self.sender = sender

    def __str__(self):
        return self.__doc__ % {'sender': self.sender}

Generated by  Doxygen 1.6.0   Back to index