~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to Mailman/database/mailinglist.py

  • Committer: Barry Warsaw
  • Date: 2007-12-08 16:51:36 UTC
  • Revision ID: barry@python.org-20071208165136-gcm3v8d7o3jbb0tt
Reorganize the database subpackage, primarily by removing the 'model'
subdirectory and updating all relevant imports.  Move of the circular
import problems have been eliminated in the process.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
from Mailman.Utils import fqdn_listname, makedirs, split_listname
25
25
from Mailman.configuration import config
26
 
from Mailman.database import Model
 
26
from Mailman.database import roster
 
27
from Mailman.database.model import Model
27
28
from Mailman.database.types import Enum
28
29
from Mailman.interfaces import IMailingList, Personalization
29
30
 
 
31
 
30
32
SPACE = ' '
31
33
UNDERSCORE = '_'
32
34
 
182
184
 
183
185
    # XXX FIXME
184
186
    def _restore(self):
185
 
        # Avoid circular imports.
186
 
        from Mailman.database.model import roster
187
187
        self.owners = roster.OwnerRoster(self)
188
188
        self.moderators = roster.ModeratorRoster(self)
189
189
        self.administrators = roster.AdministratorRoster(self)