~raj-abhilash1/mailman/bugfix

« back to all changes in this revision

Viewing changes to src/mailman/model/autorespond.py

  • Committer: Barry Warsaw
  • Date: 2012-04-26 02:08:22 UTC
  • Revision ID: barry@list.org-20120426020822-g5shyz6tr3gwkmiw
General code cleanup.

 - Add explicit dependency on zope.event in setup.py.
 - Use Python 3 compatible syntax for specifying that a class implements an
   interface, i.e. the @implementer class decorator.
 - print_function futures.
 - Whitespace normalization.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
 
29
29
from storm.locals import And, Date, Desc, Int, Reference
30
 
from zope.interface import implements
 
30
from zope.interface import implementer
31
31
 
32
32
from mailman.database.model import Model
33
33
from mailman.database.transaction import dbconnection
38
38
 
39
39
 
40
40
 
 
41
@implementer(IAutoResponseRecord)
41
42
class AutoResponseRecord(Model):
42
 
    implements(IAutoResponseRecord)
 
43
    """See `IAutoResponseRecord`."""
43
44
 
44
45
    id = Int(primary=True)
45
46
 
60
61
 
61
62
 
62
63
 
 
64
@implementer(IAutoResponseSet)
63
65
class AutoResponseSet:
64
 
    implements(IAutoResponseSet)
 
66
    """See `IAutoResponseSet`."""
65
67
 
66
68
    def __init__(self, mailing_list):
67
69
        self._mailing_list = mailing_list