cc1
v2.1
CC1 source code docs
|
Functions | |
def | activate_user |
Method activates user_id user in group group_id . | |
def | change_owner |
Function changes owner of the specified group. | |
def | create |
Creates new Group of Users. | |
def | delete |
Method deletes specified Group. | |
def | delete_user |
Method deletes membership of the specified user in specific group,. | |
def | edit |
Method edits specified Group. | |
def | get_by_id |
Method returns requested group. | |
def | get_list |
Returns Group.dict property of each existing Groups, supplemented by callers membership status: ok, waiting or not member under user_status key. | |
def | join_request |
Sends request for acceptation in specified Groupfor caller. | |
def | list_groups |
Returns list of caller's Groups (only those where caller is accepted). | |
def | list_members |
Method returns members of the group with id group_id . | |
def | list_own_groups |
Method returns list of the groups caller is leader of. | |
def | list_requests |
Function returns list of the users requesting acceptation in group with id group_id . |
def src.clm.views.user.group.activate_user | ( | cm_id, | |
caller_id, | |||
user_id, | |||
group_id | |||
) |
def src.clm.views.user.group.change_owner | ( | cm_id, | |
caller_id, | |||
user_id, | |||
group_id | |||
) |
def src.clm.views.user.group.create | ( | cm_id, | |
caller_id, | |||
name, | |||
description | |||
) |
Creates new Group of Users.
Caller becomes its leader. He also becomes a member of that Group with ok state.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
name | (POST string ) |
description | (POST string ) |
def src.clm.views.user.group.delete | ( | cm_id, | |
caller_id, | |||
group_id | |||
) |
Method deletes specified Group.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
group_id | (POST int ) id of the Group to delete |
def src.clm.views.user.group.delete_user | ( | cm_id, | |
caller_id, | |||
user_id, | |||
group_id | |||
) |
def src.clm.views.user.group.edit | ( | cm_id, | |
caller_id, | |||
group_id, | |||
name = None , |
|||
description = None |
|||
) |
def src.clm.views.user.group.get_by_id | ( | cm_id, | |
caller_id, | |||
group_id | |||
) |
def src.clm.views.user.group.get_list | ( | cm_id, | |
caller_id | |||
) |
Returns Group.dict property of each existing Groups, supplemented by callers membership status: ok, waiting or not member under user_status key.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
list(dict)
) Group.dict property for each group, supplemented by user_status key. def src.clm.views.user.group.join_request | ( | cm_id, | |
caller_id, | |||
group_id | |||
) |
Sends request for acceptation in specified Groupfor caller.
Adds caller to members with 'waiting' state.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
group_id | (POST int ) id of the Group, which caller wants to become member of |
def src.clm.views.user.group.list_groups | ( | cm_id, | |
caller_id | |||
) |
Returns list of caller's Groups (only those where caller is accepted).
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
list(dict)
) Group.dict property for each caller's Group def src.clm.views.user.group.list_members | ( | cm_id, | |
caller_id, | |||
group_id | |||
) |
Method returns members of the group with id group_id
.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
group_id | (POST int ) id of the Group that we get list of |
list(dict)
) dicts describing users belonging to specifie group. def src.clm.views.user.group.list_own_groups | ( | cm_id, | |
caller_id | |||
) |
Method returns list of the groups caller is leader of.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
list(dict)
) dicts describing groups led by caller def src.clm.views.user.group.list_requests | ( | cm_id, | |
caller_id, | |||
group_id | |||
) |
Function returns list of the users requesting acceptation in group with id group_id
.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
group_id | (POST int ) id of the group which we check membership requests for |
list(dict)
) dicts describing requesting users