summaryrefslogtreecommitdiff
path: root/src/mailman/core/pipelines.py
diff options
context:
space:
mode:
authorJ08nY2017-05-31 02:09:09 +0200
committerJ08nY2017-08-07 17:39:07 +0200
commit38a86adcdb78c1944c26a5ab8deddff619b33bcf (patch)
treec9b6f8810e33657161535bb887829305306ce0f2 /src/mailman/core/pipelines.py
parent324226f1f859f6be5e932dc9abe638aba268d154 (diff)
downloadmailman-38a86adcdb78c1944c26a5ab8deddff619b33bcf.tar.gz
mailman-38a86adcdb78c1944c26a5ab8deddff619b33bcf.tar.zst
mailman-38a86adcdb78c1944c26a5ab8deddff619b33bcf.zip
Diffstat (limited to 'src/mailman/core/pipelines.py')
-rw-r--r--src/mailman/core/pipelines.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/core/pipelines.py b/src/mailman/core/pipelines.py
index 4265d24d1..6e2ad4a27 100644
--- a/src/mailman/core/pipelines.py
+++ b/src/mailman/core/pipelines.py
@@ -24,7 +24,7 @@ from mailman.config import config
from mailman.interfaces.handler import IHandler
from mailman.interfaces.pipeline import (
DiscardMessage, IPipeline, RejectMessage)
-from mailman.utilities.modules import add_components
+from mailman.utilities.plugins import add_pluggable_components
from public import public
@@ -63,6 +63,6 @@ def process(mlist, msg, msgdata, pipeline_name='built-in'):
def initialize():
"""Initialize the pipelines."""
# Find all handlers in the registered plugins.
- add_components('mailman.handlers', IHandler, config.handlers)
+ add_pluggable_components('handlers', IHandler, config.handlers)
# Set up some pipelines.
- add_components('mailman.pipelines', IPipeline, config.pipelines)
+ add_pluggable_components('pipelines', IPipeline, config.pipelines)