Changeset 4:14b2a12d495e in mailjam for postman/models.py
- Timestamp:
- May 15, 2012, 4:41:48 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postman/models.py
r2 r4 42 42 self.address)) 43 43 self.archive = Storage(os.path.join(self.config['archive'], 44 self.address)) 45 # try to load data from the storage 46 loaded = self.load() 47 # FIXME: if loaded is False, the storage does not exist, perhaps 48 # this would be a good place to create it for the first time 49 44 self.address)) 45 50 46 def __repr__(self): 51 47 return "<MailingList '%s'>" % self.address … … 76 72 raise ValueError(address, ' is not a valid email address') 77 73 return address in self.members_addresses() 78 74 79 75 def members_addresses(self): 80 76 return self.members.keys()
Note:
See TracChangeset
for help on using the changeset viewer.