qm :: user :: XmlDatabase :: Class XmlDatabase
[hide private]
[frames] | no frames]

Class XmlDatabase

source code

An XML user database.

An object of this class behaves as a read-only map from user IDs to 'User' objects.

Instance Methods [hide private]
 
__init__(self, database_path)
Read in the XML user database.
source code
 
GetDefaultUserId(self)
Return the ID of the default user, or 'None'.
source code
 
GetGroupIds(self)
Return the IDs of user groups.
source code
 
GetGroup(self, group_id)
Return the group with ID 'group_id'.
source code
 
Write(self)
Write out the user database.
source code
 
__getitem__(self, user_id) source code
 
get(self, user_id, default=None) source code
 
keys(self) source code