diff options
| author | Barry Warsaw | 2007-12-27 23:25:50 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2007-12-27 23:25:50 -0500 |
| commit | 306a1ceee0aad4c623f029d8809b40f7f55b9a6f (patch) | |
| tree | a880cc16e333a785fd3cdcd469dc388407568ba2 /Mailman/interfaces/rules.py | |
| parent | 13dea3a6736834e19ad569b5e3d70a79e096a55e (diff) | |
| download | mailman-306a1ceee0aad4c623f029d8809b40f7f55b9a6f.tar.gz mailman-306a1ceee0aad4c623f029d8809b40f7f55b9a6f.tar.zst mailman-306a1ceee0aad4c623f029d8809b40f7f55b9a6f.zip | |
Change IRuleProcessor to IRuleSet. Plugins now provide only sets of rules,
they do not do the actual rule processing. That's left up to Mailman.
Further, the rule processor can be given a list of rules to run; those will be
the only ones run.
Diffstat (limited to '')
| -rw-r--r-- | Mailman/interfaces/rules.py (renamed from Mailman/interfaces/rule.py) | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Mailman/interfaces/rule.py b/Mailman/interfaces/rules.py index c0cf71697..5ef741852 100644 --- a/Mailman/interfaces/rule.py +++ b/Mailman/interfaces/rules.py @@ -42,18 +42,9 @@ class IRule(Interface): -class IRuleProcessor(Interface): +class IRuleSet(Interface): """A rule processor.""" - def process(mlist, msg, msgdata): - """Run all rules this processor knows about. - - :param mlist: The mailing list this message was posted to. - :param msg: The message object. - :param msgdata: The message metadata. - :return: A set of rule names that matched. - """ - rules = Attribute('The set of all rules this processor knows about') def __getitem__(rule_name): |
