Changeset 1:421645ee4cd9 in mailjam for postman
- Timestamp:
- May 14, 2012, 6:08:53 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- postman
- Files:
-
- 3 added
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
postman/models.py
r0 r1 38 38 self.members = members 39 39 self.config = config 40 # FIXME: The path to the storage files directory should be defined 41 # in a configuration file 42 self.storage = JsonStorage(os.path.join(config.storage_path, 40 self.storage = JsonStorage(os.path.join(config['storage'], 43 41 self.address)) 44 42 … … 88 86 member = Member(address) 89 87 self.members[address] = member 88 return True 90 89 91 90 def delete_member(self, member): -
postman/tools.py
r0 r1 15 15 """ 16 16 17 if not isinstance(address, str): 18 return False 19 17 20 email_re = re.compile( 18 21 r"(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*" # dot-atom
Note:
See TracChangeset
for help on using the changeset viewer.