From 18e07a3dc2caa61ed042515cd91833a76a596b9d Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 19 Sep 2007 22:35:37 -0400 Subject: 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. --- Mailman/database/model/mailinglist.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Mailman/database') 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): -- cgit v1.2.3-70-g09d2