- Timestamp:
- 2 Jan 2010, 15:04:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/users.py
r4636 r4638 14 14 15 15 def addUser(self, name, password, title=None, description=None, roles=[]): 16 """Add a new Account instance, created from parameters. 17 """ 16 18 if title is None: 17 19 title = name … … 21 23 22 24 def addAccount(self, account): 25 """Add the account passed. 26 """ 23 27 self[account.name] = account 24 28 25 29 def delUser(self, name): 30 """Delete user, if an account with the given name exists. 31 32 Do not complain, if the name does not exist. 33 """ 26 34 if name in self.keys(): 27 35 del self[name]
Note: See TracChangeset for help on using the changeset viewer.