userscontainer – Users (Principals) Module

class waeup.kofa.userscontainer.UsersContainer[source]

A container for officers.

See interfaces.py and users.txt for extensive description.

__doc__ = 'A container for officers.\n\n See interfaces.py and users.txt for extensive description.\n '
__implemented__ = <implementedBy waeup.kofa.userscontainer.UsersContainer>
__module__ = 'waeup.kofa.userscontainer'
__provides__

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.

For example:

>>> from zope.interface import Interface
>>> class IFooFactory(Interface):
...     pass
>>> class IFoo(Interface):
...     pass
>>> class C(object):
...     implements(IFoo)
...     classProvides(IFooFactory)
>>> [i.getName() for i in C.__provides__]
['IFooFactory']
>>> [i.getName() for i in C().__provides__]
['IFoo']
addAccount(account)[source]

Add the account passed.

addUser(name, password, title=None, description=None, email=None, phone=None, public_name=None, roles=[])[source]

Add a new Account instance, created from parameters.

delUser(name)[source]

Delete user, if an account with the given name exists.

Do not complain, if the name does not exist.