Home | Trees | Indices | Help |
---|
|
User management facilities. Access to this module is primarily through two global variables. 'database' -- The user database. The database contains objects representing users, accessed via a *user ID*. The user ID is a label uniquely identifying the user in the system. The user database also provides a notion of user groups. Each group is identified by a group ID, and contains zero or more user IDs. A user may belong to more than one group. A group may not contain other groups. 'authenticator' -- The authenticator object by which the application authenticates users who attempt to access it via various channels. Access the database object via this interface: * Use the database object as a Python map from user IDs to 'User' objects. The 'keys' method returns a sequence of user IDs in the database. * Call 'GetGroupIds' to return a sequence of group IDs. Use the 'GetGroup' method to retrieve a 'Group' object for a given group ID.
|
|||
AuthenticationError | |||
XmlDatabaseError | |||
AccountDisabledError | |||
User A user account record. |
|||
Group A group of users. |
|||
Authenticator Base class for authentication classes. |
|||
DefaultDatabase | |||
DefaultAuthenticator Authenticator for only a single user, "default_user". |
|||
XmlDatabase An XML user database. |
|||
XmlDatabaseAuthenticator An authenticator based on contents of the XML user database. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
xml_user_database_dtd =
|
|||
database = DefaultDatabase()
|
|||
authenticator = DefaultAuthenticator()
|
|||
__package__ =
|
|
Construct a 'User' object from a user DOM element. 'user_node' -- A "user" DOM element. returns -- A 'User' object. |
Return a dictionary of properties from a user DOM element node. 'node' -- A "user" DOM element. 'tag' -- The tag of the child element in which to look for properties. returns -- A map from property names to values. |
Create a DOM element node for 'user'. 'document' -- The DOM document object in which to create the element. 'user' -- A 'User' instance. returns -- A DOM element node. |
Add user properties to a DOM element. 'element' -- A DOM element node to which properties are to be added as children. 'properties' -- A map from property names to values. |
Construct a 'Group' object from a DOM element. 'group_node' -- A DOM "group" element node. returns -- A 'Group' object. |
Create a DOM element node for 'group'. 'document' -- The DOM document object in which to create the element. 'group' -- A 'Group' instance. returns -- A DOM element node. |
|
xml_user_database_dtd
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:40 2011 | http://epydoc.sourceforge.net |