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

Functions

def edit
 Function for editing user's data.
def get_my_data
 Returns user's data.
def get_quota
def points_history
def send_issue
 Send issue email.
def set_password
 Sets user's password.

Detailed Description

Note
All functions here are decorated by src.clm.utils.decorators.user_log. It's recommended to read src.clm.utils.decorators.user_log docs before using functions below.

Function Documentation

def src.clm.views.user.user.edit (   cm_id,
  caller_id,
  email,
  default_cluster_id 
)

Function for editing user's data.

Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
email(POST string)
default_cluster_id(POST)
Returns
HttpResponse with JSON content:
  • response: response status,
  • data: (dict) new user's info

Definition at line 82 of file user.py.

def src.clm.views.user.user.get_my_data (   cm_id,
  caller_id 
)

Returns user's data.

Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)

Definition at line 42 of file user.py.

def src.clm.views.user.user.get_quota (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
Note
This function is decorated by clm.utils.decorators.cm_request decorator. It's fully transparent. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.user.user.get_quota()) + one additional kwarg: cm_id). View requests src.cm.views.user.user.get_quota() from CM and returns the response. For documentation see src.cm.views.user.user.get_quota()

Definition at line 102 of file user.py.

def src.clm.views.user.user.points_history (   cm_response,
  data 
)
Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
Note
This function is decorated by clm.utils.decorators.cm_request decorator. It's fully transparent. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.user.user.point_history()) + one additional kwarg: cm_id). View requests src.cm.views.user.user.point_history() from CM and returns the response. For documentation see src.cm.views.user.user.point_history()

Definition at line 113 of file user.py.

def src.clm.views.user.user.send_issue (   cm_id,
  caller_id,
  topic,
  issue 
)

Send issue email.

Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
topic(POST string) topic of the issue email
issue(POST string) content of the issue email

Definition at line 126 of file user.py.

def src.clm.views.user.user.set_password (   cm_id,
  caller_id,
  new_password 
)

Sets user's password.

Note
The clm.utils.decorators.user_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.user_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
new_password(POST string)

Definition at line 60 of file user.py.