diff options
| author | Barry Warsaw | 2007-12-29 01:13:38 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2007-12-29 01:13:38 -0500 |
| commit | b7fc1a2cd9cc63f9bfafb6d3e7a28f3b64f3ed97 (patch) | |
| tree | e33933b88fc4fd7e108c174da6292946bd9128e7 /Mailman/interfaces/rules.py | |
| parent | 306a1ceee0aad4c623f029d8809b40f7f55b9a6f (diff) | |
| download | mailman-b7fc1a2cd9cc63f9bfafb6d3e7a28f3b64f3ed97.tar.gz mailman-b7fc1a2cd9cc63f9bfafb6d3e7a28f3b64f3ed97.tar.zst mailman-b7fc1a2cd9cc63f9bfafb6d3e7a28f3b64f3ed97.zip | |
Convert the Approve.py handler to an approved.py rule. Update the doctest to
use the rule check instead of handler processing. Add a test for stripping
the header from the text/html part to the doctest.
Add Mailman.app.rules.find_rule() to return a named rule.
Fix a few typos.
Diffstat (limited to '')
| -rw-r--r-- | Mailman/interfaces/rules.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/interfaces/rules.py b/Mailman/interfaces/rules.py index 5ef741852..13edcf481 100644 --- a/Mailman/interfaces/rules.py +++ b/Mailman/interfaces/rules.py @@ -35,6 +35,7 @@ class IRule(Interface): def check(mlist, msg, msgdata): """Run the rule. + :param mlist: The mailing list object. :param msg: The message object. :param msgdata: The message metadata. :return: A boolean specifying whether the rule was matched or not. @@ -45,7 +46,7 @@ class IRule(Interface): class IRuleSet(Interface): """A rule processor.""" - rules = Attribute('The set of all rules this processor knows about') + rules = Attribute('The set of all rules this processor knows about.') def __getitem__(rule_name): """Return the named rule. |
