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).
Methods
|
|
GetId
__delitem__
__getitem__
__init__
__len__
__setitem__
append
remove
|
|
GetId
|
GetId ( self )
Return the group_id of this group.
|
|
__delitem__
|
__delitem__ ( self, index )
|
|
__getitem__
|
__getitem__ ( self, index )
|
|
__init__
|
__init__ (
self,
group_id,
user_ids=[],
)
Create a new group.
-
group_id
- The ID of this group.
-
user_ids
- IDs of users initially in the group.
|
|
__len__
|
__len__ ( self )
|
|
__setitem__
|
__setitem__ (
self,
index,
user_id,
)
|
|
append
|
append ( self, user_id )
|
|
remove
|
remove ( self, user_id )
|
|