diff options
| author | Barry Warsaw | 2009-03-09 23:49:20 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2009-03-09 23:49:20 -0400 |
| commit | 7717440e877660072fe1bd5f3771b0d110b5ff9b (patch) | |
| tree | 6dad041003c017741d11810b63715b6fe84fa4c3 /src/mailman/core/pipelines.py | |
| parent | 11eb3395ad1f7c9f6699f96c33ca0543c2f83220 (diff) | |
| download | mailman-7717440e877660072fe1bd5f3771b0d110b5ff9b.tar.gz mailman-7717440e877660072fe1bd5f3771b0d110b5ff9b.tar.zst mailman-7717440e877660072fe1bd5f3771b0d110b5ff9b.zip | |
Diffstat (limited to 'src/mailman/core/pipelines.py')
| -rw-r--r-- | src/mailman/core/pipelines.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mailman/core/pipelines.py b/src/mailman/core/pipelines.py index 8aae5cc25..aae3f11dd 100644 --- a/src/mailman/core/pipelines.py +++ b/src/mailman/core/pipelines.py @@ -30,10 +30,10 @@ from zope.interface import implements from zope.interface.verify import verifyObject from mailman.config import config -from mailman.core.plugins import get_plugins from mailman.i18n import _ from mailman.interfaces.handler import IHandler from mailman.interfaces.pipeline import IPipeline +from mailman.pipeline import builtin_handlers @@ -111,14 +111,13 @@ class VirginPipeline(BasePipeline): def initialize(): """Initialize the pipelines.""" # Find all handlers in the registered plugins. - for handler_finder in get_plugins('mailman.handlers'): - for handler_class in handler_finder(): - handler = handler_class() - verifyObject(IHandler, handler) - assert handler.name not in config.handlers, ( - 'Duplicate handler "{0}" found in {1}'.format( - handler.name, handler_finder)) - config.handlers[handler.name] = handler + for handler_class in builtin_handlers(): + handler = handler_class() + verifyObject(IHandler, handler) + assert handler.name not in config.handlers, ( + 'Duplicate handler "{0}" found in {1}'.format( + handler.name, handler_finder)) + config.handlers[handler.name] = handler # Set up some pipelines. for pipeline_class in (BuiltInPipeline, VirginPipeline): pipeline = pipeline_class() |
