~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to Mailman/database/address.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:
21
21
 
22
22
from Mailman import Errors
23
23
from Mailman.configuration import config
24
 
from Mailman.database import Model
 
24
from Mailman.database.member import Member
 
25
from Mailman.database.model import Model
 
26
from Mailman.database.preferences import Preferences
25
27
from Mailman.interfaces import IAddress
26
28
 
27
29
 
63
65
                address_str, verified, self.address, id(self))
64
66
 
65
67
    def subscribe(self, mailing_list, role):
66
 
        from Mailman.database.model import Member
67
 
        from Mailman.database.model import Preferences
68
68
        # This member has no preferences by default.
69
69
        member = config.db.store.find(
70
70
            Member,