diff options
| author | Barry Warsaw | 2009-01-01 17:58:39 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-01 17:58:39 -0500 |
| commit | 1c285f110d8e98597453c6b4b69ea01163033547 (patch) | |
| tree | 00c7ec16711b2073e40f593658f652726a9d4231 /mailman/database/mailinglist.py | |
| parent | 12513c7d0fc1f5d2a1aabda349637309f6e8300b (diff) | |
| parent | 600ddb503a391d70230d96ee91a631888d11b35a (diff) | |
| download | mailman-1c285f110d8e98597453c6b4b69ea01163033547.tar.gz mailman-1c285f110d8e98597453c6b4b69ea01163033547.tar.zst mailman-1c285f110d8e98597453c6b4b69ea01163033547.zip | |
Two major structural conversions.
* Use zc.buildout and zc.testing frameworks for building and testing Mailman.
* Use lazr.config as the configuration system, though this conversion is not
yet complete.
Also: move a bunch of old bin scripts to the attic.
Diffstat (limited to 'mailman/database/mailinglist.py')
| -rw-r--r-- | mailman/database/mailinglist.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mailman/database/mailinglist.py b/mailman/database/mailinglist.py index d5e6fd7b8..641245daf 100644 --- a/mailman/database/mailinglist.py +++ b/mailman/database/mailinglist.py @@ -1,4 +1,4 @@ -# Copyright (C) 2006-2008 by the Free Software Foundation, Inc. +# Copyright (C) 2006-2009 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # @@ -21,8 +21,9 @@ import string from storm.locals import * from zope.interface import implements +from mailman import Defaults from mailman.Utils import fqdn_listname, makedirs, split_listname -from mailman.configuration import config +from mailman.config import config from mailman.database import roster from mailman.database.model import Model from mailman.database.types import Enum @@ -218,7 +219,7 @@ class MailingList(Model): @property def no_reply_address(self): - return '%s@%s' % (config.NO_REPLY_ADDRESS, self.host_name) + return '%s@%s' % (config.mailman.noreply_address, self.host_name) @property def owner_address(self): @@ -249,7 +250,7 @@ class MailingList(Model): return '%s-unsubscribe@%s' % (self.list_name, self.host_name) def confirm_address(self, cookie): - template = string.Template(config.VERP_CONFIRM_FORMAT) + template = string.Template(Defaults.VERP_CONFIRM_FORMAT) local_part = template.safe_substitute( address = '%s-confirm' % self.list_name, cookie = cookie) |
