summaryrefslogtreecommitdiff
path: root/Mailman/rules/docs
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/rules/docs
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/rules/docs')
-rw-r--r--Mailman/rules/docs/rules.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/Mailman/rules/docs/rules.txt b/Mailman/rules/docs/rules.txt
index 4e5db7012..b9606663c 100644
--- a/Mailman/rules/docs/rules.txt
+++ b/Mailman/rules/docs/rules.txt
@@ -13,7 +13,7 @@ only the rule processing system.
Rule sets
-=========
+---------
IRuleSet is the interface that describes a set of rules. Mailman can be
extended by plugging in additional rule sets, but it also comes with a default
@@ -32,7 +32,6 @@ You can iterator over all the rules in a rule set.
>>> rule = None
>>> for rule in rule_set.rules:
... if rule.name == 'emergency':
- ... rule = rule()
... break
>>> verifyObject(IRule, rule)
True
@@ -81,7 +80,7 @@ For example, the emergency rule just checks to see if the emergency flag is
set on the mailing list, and the message has not been pre-approved by the list
administrator.
- >>> rule = rule_set['emergency']()
+ >>> rule = rule_set['emergency']
>>> rule.name
'emergency'
>>> mlist.emergency = False