cc1  v2.1
CC1 source code docs
 All Classes Namespaces Files Functions Variables Pages
src.cm.views.user.user Namespace Reference

Functions

def add_missing
 Adds Users whose ids are listed in remote and who are locally missing.
def get_quota
 Gets caller's quota.
def points_history

Detailed Description

Note
All functions here are decorated by src.cm.utils.decorators.user_log. It's recommended to read src.cm.utils.decorators.user_log docs before using functions below.
Author
Tomek Sośnicki tom.s.nosp@m.osni.nosp@m.cki@g.nosp@m.mail.nosp@m..com

Function Documentation

def src.cm.views.user.user.add_missing (   caller_id,
  remote 
)

Adds Users whose ids are listed in remote and who are locally missing.

Note
The cm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: cm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
caller_id(POST int)
remote(POST list(int)) ids of the remote Users

Definition at line 64 of file user.py.

def src.cm.views.user.user.get_quota (   caller_id)

Gets caller's quota.

Note
The cm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: cm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
caller_id(POST int)
Returns
HttpResponse with JSON content:
  • response: response status,
  • data: (dict) caller's quota

Definition at line 40 of file user.py.

def src.cm.views.user.user.points_history (   caller_id)
Note
The cm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: cm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
caller_id(POST int)
Returns
HttpResponse with JSON content:
  • response: response status,
  • data: caller's point history

Definition at line 51 of file user.py.