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

Class Group

source code

A group of users.

A 'Group' object is treated as an ordinary list of user IDs (except that a user ID may not appear more than once in the list).

Instance Methods [hide private]
 
__init__(self, group_id, user_ids=[])
Create a new group.
source code
 
GetId(self)
Return the group_id of this group.
source code
 
__len__(self) source code
 
__getitem__(self, index) source code
 
__setitem__(self, index, user_id) source code
 
__delitem__(self, index) source code
 
append(self, user_id) source code
 
remove(self, user_id) source code
Method Details [hide private]

__init__(self, group_id, user_ids=[])
(Constructor)

source code 

Create a new group.

'group_id' -- The ID of this group.

'user_ids' -- IDs of users initially in the group.