diff options
| author | Barry Warsaw | 2009-01-03 05:13:41 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-03 05:13:41 -0500 |
| commit | e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110 (patch) | |
| tree | e456327300678100b6cc6dfa625c7bc31a9f34a4 /mailman/app/lifecycle.py | |
| parent | c0522afd1754c7a18c40c9ebaa6c2ef406929170 (diff) | |
| download | mailman-e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110.tar.gz mailman-e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110.tar.zst mailman-e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110.zip | |
Diffstat (limited to 'mailman/app/lifecycle.py')
| -rw-r--r-- | mailman/app/lifecycle.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/mailman/app/lifecycle.py b/mailman/app/lifecycle.py index 5401c1e12..8bc316b43 100644 --- a/mailman/app/lifecycle.py +++ b/mailman/app/lifecycle.py @@ -33,7 +33,6 @@ from mailman import Utils from mailman.Utils import ValidateEmail from mailman.config import config from mailman.core import errors -from mailman.core.plugins import get_plugin from mailman.core.styles import style_manager from mailman.interfaces import MemberRole @@ -52,15 +51,12 @@ def create_list(fqdn_listname, owners=None): raise errors.BadDomainSpecificationError(domain) mlist = config.db.list_manager.create(fqdn_listname) for style in style_manager.lookup(mlist): - # XXX FIXME. When we get rid of the wrapper object, this hack won't - # be necessary. Until then, setattr on the MailList instance won't - # set the database column values, so pass the underlying database - # object to .apply() instead. style.apply(mlist) - # Coordinate with the MTA, which should be defined by plugins. - # XXX FIXME -## mta_plugin = get_plugin('mailman.mta') -## mta_plugin().create(mlist) + # Coordinate with the MTA, as defined in the configuration file. + module_name, class_name = config.mta.incoming.rsplit('.', 1) + __import__(module_name) + mta = getattr(sys.modules[module_name], class_name) + mta().create(mlist) # Create any owners that don't yet exist, and subscribe all addresses as # owners of the mailing list. usermgr = config.db.user_manager |
