summaryrefslogtreecommitdiff
path: root/Mailman/database/model/mailinglist.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-09-19 22:35:37 -0400
committerBarry Warsaw2007-09-19 22:35:37 -0400
commit18e07a3dc2caa61ed042515cd91833a76a596b9d (patch)
tree5dd4a7e0139e5710ca670a9bb7c6da738d8b3698 /Mailman/database/model/mailinglist.py
parent4c517789fa8b29d2a23791e6f390d9f1173c3125 (diff)
downloadmailman-18e07a3dc2caa61ed042515cd91833a76a596b9d.tar.gz
mailman-18e07a3dc2caa61ed042515cd91833a76a596b9d.tar.zst
mailman-18e07a3dc2caa61ed042515cd91833a76a596b9d.zip
InitTempVars() is completely eradicated. The only bit I think we
still need temporarily is the _gui component initialization, so this has been moved into MailList.__init__(). Fixed the __getattr__() super call to properly dispatch up. Removed the _memberadaptor instance variable initialization. The whole MemberAdaptor stuff is next on the chopping block. Essentially MailList locking is gone too now, although it's not yet completely eradicated. However, the __repr__() no longer states the lock status. The full_path property is now just an attribute on the underlying MailingList database object.
Diffstat (limited to 'Mailman/database/model/mailinglist.py')
-rw-r--r--Mailman/database/model/mailinglist.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/database/model/mailinglist.py b/Mailman/database/model/mailinglist.py
index 0cb968574..1b2892a46 100644
--- a/Mailman/database/model/mailinglist.py
+++ b/Mailman/database/model/mailinglist.py
@@ -15,10 +15,12 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
+import os
+
from elixir import *
from zope.interface import implements
-from Mailman.Utils import fqdn_listname, split_listname
+from Mailman.Utils import fqdn_listname, makedirs, split_listname
from Mailman.configuration import config
from Mailman.interfaces import *
from Mailman.database.types import EnumType, TimeDeltaType
@@ -174,6 +176,8 @@ class MailingList(Entity):
# 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)
+ makedirs(self.full_path)
# XXX FIXME
def _restore(self):