summaryrefslogtreecommitdiff
path: root/src/mailman/Archiver
diff options
context:
space:
mode:
authorBarry Warsaw2009-12-08 22:39:10 -0500
committerBarry Warsaw2009-12-08 22:39:10 -0500
commit3d65590999f5288307ecb0df6ae1b77241869f61 (patch)
tree7047453b1ddfbc6d5715834553f46e3362d3e1da /src/mailman/Archiver
parent24f92b6c842bfa3701cb708e4aee3c991f206c9d (diff)
downloadmailman-3d65590999f5288307ecb0df6ae1b77241869f61.tar.gz
mailman-3d65590999f5288307ecb0df6ae1b77241869f61.tar.zst
mailman-3d65590999f5288307ecb0df6ae1b77241869f61.zip
* Make IDomainManager a utility, since the config object is global.
* Give IMailingList a .domain attribute which looks up the IDomain for its .host_name. This cleans up a lot of code. * Add a test for the 'confirm' email command. * Suppress blank lines in email command responses. * Make the IDomainCollection a utility.
Diffstat (limited to 'src/mailman/Archiver')
-rw-r--r--src/mailman/Archiver/Archiver.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/Archiver/Archiver.py b/src/mailman/Archiver/Archiver.py
index 5fb5b754c..dc8014bf5 100644
--- a/src/mailman/Archiver/Archiver.py
+++ b/src/mailman/Archiver/Archiver.py
@@ -30,6 +30,7 @@ import mailbox
from cStringIO import StringIO
from string import Template
+from zope.component import getUtility
from mailman import Utils
from mailman.config import config
@@ -129,7 +130,7 @@ class Archiver:
if self.archive_private:
url = self.GetScriptURL('private') + '/index.html'
else:
- domain = IDomainManager(config).get(self.host_name)
+ domain = getUtility(IDomainManager).get(self.host_name)
web_host = (self.host_name if domain is None else domain.url_host)
url = Template(config.PUBLIC_ARCHIVE_URL).safe_substitute(
listname=self.fqdn_listname,