~stephen-xemacs/mailman/maxking

« back to all changes in this revision

Viewing changes to src/mailman/interfaces/action.py

  • Committer: Barry Warsaw
  • Date: 2013-05-02 15:15:14 UTC
  • Revision ID: barry@list.org-20130502151514-06j1ua3mbvxt9z3l
PEP 435 enums won't allow extensibility through inheritance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    defer   = 4
37
37
 
38
38
 
39
 
class FilterAction(Action):
 
39
class FilterAction(Enum):
 
40
    hold    = 0
 
41
    reject  = 1
 
42
    discard = 2
 
43
    accept  = 3
 
44
    defer   = 4
40
45
    forward = 5
41
46
    preserve = 6