summaryrefslogtreecommitdiff
path: root/mailman/database/mailinglist.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-03-27 05:14:14 -0400
committerBarry Warsaw2008-03-27 05:14:14 -0400
commit17f286de64cb3373d68c4fefba6d9369b4e3f960 (patch)
tree5078531044f0574dfa340a389bd6d0bb9eea717f /mailman/database/mailinglist.py
parentde9deb660c5d48a083f0c56916cca6aa0cb010b3 (diff)
downloadmailman-17f286de64cb3373d68c4fefba6d9369b4e3f960.tar.gz
mailman-17f286de64cb3373d68c4fefba6d9369b4e3f960.tar.zst
mailman-17f286de64cb3373d68c4fefba6d9369b4e3f960.zip
Diffstat (limited to 'mailman/database/mailinglist.py')
-rw-r--r--mailman/database/mailinglist.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/mailman/database/mailinglist.py b/mailman/database/mailinglist.py
index 9895f9c2d..0b80ca0b5 100644
--- a/mailman/database/mailinglist.py
+++ b/mailman/database/mailinglist.py
@@ -174,11 +174,10 @@ class MailingList(Model):
# 2-tuple of the date of the last autoresponse and the number of
# autoresponses sent on that date.
self.hold_and_cmd_autoresponses = {}
- self.full_path = os.path.join(config.LIST_DATA_DIR, fqdn_listname)
self.personalization = Personalization.none
self.real_name = string.capwords(
SPACE.join(listname.split(UNDERSCORE)))
- makedirs(self.full_path)
+ makedirs(self.data_path)
# XXX FIXME
def _restore(self):
@@ -192,20 +191,25 @@ class MailingList(Model):
@property
def fqdn_listname(self):
- """See IMailingListIdentity."""
+ """See `IMailingList`."""
return fqdn_listname(self.list_name, self.host_name)
@property
def web_host(self):
- """See IMailingListWeb."""
+ """See `IMailingList`."""
return config.domains[self.host_name]
def script_url(self, target, context=None):
- """See IMailingListWeb."""
+ """See `IMailingList`."""
# XXX Handle the case for when context is not None; those would be
# relative URLs.
return self.web_page_url + target + '/' + self.fqdn_listname
+ @property
+ def data_path(self):
+ """See `IMailingList`."""
+ return os.path.join(config.LIST_DATA_DIR, self.fqdn_listname)
+
# IMailingListAddresses
@property