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.
  GetId(self)
Return the group_id of this group.
  __len__(self)
  __getitem__(self, index)
  __setitem__(self, index, user_id)
  __delitem__(self, index)
  append(self, user_id)
  remove(self, user_id)

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.

GetId(self)

source code 
Return the group_id of this group.

__len__(self)
(Length operator)

source code 

__getitem__(self, index)
(Indexing operator)

source code 

__setitem__(self, index, user_id)
(Index assignment operator)

source code 

__delitem__(self, index)
(Index deletion operator)

source code 

append(self, user_id)

source code 

remove(self, user_id)

source code