summaryrefslogtreecommitdiff
path: root/Mailman/interfaces/rules.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-01-01 22:37:08 -0500
committerBarry Warsaw2008-01-01 22:37:08 -0500
commit6ca002e04d647671d55ee928fe134b0e223606cb (patch)
tree16f0ace720c78d49b06d5587618a82565305c24e /Mailman/interfaces/rules.py
parentadae635a4ca147937019fdd91aebd95a2769b9ca (diff)
downloadmailman-6ca002e04d647671d55ee928fe134b0e223606cb.tar.gz
mailman-6ca002e04d647671d55ee928fe134b0e223606cb.tar.zst
mailman-6ca002e04d647671d55ee928fe134b0e223606cb.zip
Fix the rule api once more so that while rules themselves are still classes,
they are instantiated by the IRuleSet, thus keeping the promises of the interface. The ChainJump enum is moved to interfaces/chain.py. This will be fleshed out subsequently.
Diffstat (limited to 'Mailman/interfaces/rules.py')
-rw-r--r--Mailman/interfaces/rules.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/Mailman/interfaces/rules.py b/Mailman/interfaces/rules.py
index c023acf6b..5549b8e6b 100644
--- a/Mailman/interfaces/rules.py
+++ b/Mailman/interfaces/rules.py
@@ -17,25 +17,10 @@
"""Interface describing the basics of rules."""
-from munepy import Enum
from zope.interface import Interface, Attribute
-class ChainJump(Enum):
- # Allow the next rule in the chain to be run.
- defer = 0
- # Jump to the 'accept' chain.
- accept = 1
- # Jump to the 'hold' chain.
- hold = 2
- # Jump to the 'reject' chain.
- reject = 3
- # Jump to the 'discard' chain.
- discard = 4
-
-
-
class DuplicateRuleError(Exception):
"""A rule or rule name is added to a processor more than once."""
@@ -57,7 +42,6 @@ class IRule(Interface):
:param mlist: The mailing list object.
:param msg: The message object.
:param msgdata: The message metadata.
- :return: A chain to jump to, i.e. an ChainJump enum.
"""