Home | Trees | Index | Help |
|
---|
Package g4ds :: Module communitymanager :: Class MemberManager |
|
Managing information about members of communities
Connected to a database. All the data is loaded into the memory at startup time. Changes are written through directly.Method Summary | |
---|---|
Initialises the member manager. | |
Some basic information about the object | |
Adds a member instance to the dictionary. | |
Member
|
Returns the member instance for the local node. |
Member
|
Get the member with the given ID from the repository. |
Provides a list with IDs of all members stored in the repository. | |
Member
|
Updates the member information for the object in the member manager with the same member id. |
Instance Variable Summary | |
---|---|
communitymanager_db.CM_DB |
_cm_db : Community Manager Database Connector |
Boolean |
_dbconnected : Indicates, whether the manager is connected to a database; hence
whether the changes shall be written through |
Dict of String | Member |
_members : Dictionary with all known members (key is the id, value a Member
instance) |
Method Details |
---|
__init__(self,
loadFromDatabase=0)
Initialises the member manager.
|
__str__(self)
Some basic information about the object
|
addMember(self, member, persistent=1, storeCommunityRelations=0)Adds a member instance to the dictionary.
|
getLocalMember(self)Returns the member instance for the local node.
|
getMember(self, memberId)Get the member with the given ID from the repository.
|
getMemberIds(self)Provides a list with IDs of all members stored in the repository. return: List of IDs of all known members. rtype:List
of String
|
updateMember(self, member, updateCommunityRelations)Updates the member information for the object in the member manager with the same member id. If no member with the given id is in the manager, a new member will be created. All changes are written through to the database if connected. |
Instance Variable Details |
---|
_cm_dbCommunity Manager Database Connector |
_dbconnectedIndicates, whether the manager is connected to a database; hence whether the changes shall be written through
|
_membersDictionary with all known members (key is the id, value a Member instance)
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Oct 22 22:52:47 2005 | http://epydoc.sf.net |