diff options
| author | Barry Warsaw | 2009-03-29 15:40:22 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-03-29 15:40:22 -0500 |
| commit | 5388a2358749a1774bb801e6e6839c1798998a1f (patch) | |
| tree | 6bf6f2a10f1f1f588d5ca6d2f4c8ec8e6530cb4a /src/mailman/core/rules.py | |
| parent | f90c651d85050b9ad3b33bdf210672452d2ba1f0 (diff) | |
| download | mailman-5388a2358749a1774bb801e6e6839c1798998a1f.tar.gz mailman-5388a2358749a1774bb801e6e6839c1798998a1f.tar.zst mailman-5388a2358749a1774bb801e6e6839c1798998a1f.zip | |
Add argparse 'cause I think this might end up being cool.
Refactor the finding of components so that it's much easier to find and
register the ones that come with Mailman by default.
Move all the old cmd_*.py commands into the attic. These will eventually be
ported to the new framework.
Diffstat (limited to 'src/mailman/core/rules.py')
| -rw-r--r-- | src/mailman/core/rules.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/core/rules.py b/src/mailman/core/rules.py index 82ae4c89b..587733d5e 100644 --- a/src/mailman/core/rules.py +++ b/src/mailman/core/rules.py @@ -27,16 +27,16 @@ __all__ = [ from zope.interface.verify import verifyObject +from mailman.app.finder import find_components from mailman.config import config from mailman.interfaces.rules import IRule -from mailman.rules import builtin_rules def initialize(): """Find and register all rules in all plugins.""" # Find rules in plugins. - for rule_class in builtin_rules(): + for rule_class in find_components('mailman.rules', IRule): rule = rule_class() verifyObject(IRule, rule) assert rule.name not in config.rules, ( |
