diff options
| author | Barry Warsaw | 2009-01-06 23:45:34 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-06 23:45:34 -0500 |
| commit | d3e2ba2707c99c0a444302b1f013131ea41b7eae (patch) | |
| tree | 3946d242ddda9adab74fb4cf1685319ca43e97ed /mailman/app/lifecycle.py | |
| parent | 994d079ea50deb58b20c41e506e29278c3c93257 (diff) | |
| download | mailman-d3e2ba2707c99c0a444302b1f013131ea41b7eae.tar.gz mailman-d3e2ba2707c99c0a444302b1f013131ea41b7eae.tar.zst mailman-d3e2ba2707c99c0a444302b1f013131ea41b7eae.zip | |
Diffstat (limited to 'mailman/app/lifecycle.py')
| -rw-r--r-- | mailman/app/lifecycle.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mailman/app/lifecycle.py b/mailman/app/lifecycle.py index 7ea50a055..7b7daadf3 100644 --- a/mailman/app/lifecycle.py +++ b/mailman/app/lifecycle.py @@ -54,8 +54,7 @@ def create_list(fqdn_listname, owners=None): # 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) + getattr(sys.modules[module_name], class_name)().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 @@ -82,10 +81,9 @@ def remove_list(fqdn_listname, mailing_list=None, archives=True): # Delete the mailing list from the database. config.db.list_manager.delete(mailing_list) # Do the MTA-specific list deletion tasks -## if config.MTA: -## modname = 'mailman.MTA.' + config.MTA -## __import__(modname) -## sys.modules[modname].remove(mailing_list) + module_name, class_name = config.mta.incoming.rsplit('.', 1) + __import__(module_name) + getattr(sys.modules[module_name], class_name)().create(mlist) # Remove the list directory. removeables.append(os.path.join(config.LIST_DATA_DIR, fqdn_listname)) # Remove any stale locks associated with the list. |
