Changeset 4638


Ignore:
Timestamp:
2 Jan 2010, 15:04:00 (15 years ago)
Author:
uli
Message:

Add docstrings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-layout/src/waeup/users.py

    r4636 r4638  
    1414
    1515    def addUser(self, name, password, title=None, description=None, roles=[]):
     16        """Add a new Account instance, created from parameters.
     17        """
    1618        if title is None:
    1719            title = name
     
    2123
    2224    def addAccount(self, account):
     25        """Add the account passed.
     26        """
    2327        self[account.name] = account
    2428       
    2529    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        """
    2634        if name in self.keys():
    2735            del self[name]
Note: See TracChangeset for help on using the changeset viewer.