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

Functions

def am_i_admin
def check_password

Function Documentation

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

Definition at line 44 of file admin.py.

def src.clm.views.user.admin.check_password (   cm_response,
  data 
)
Note
The clm.utils.decorators.admin_cm_log decorator performs User authentication. It also provides handling/logging mechanism for each Exception raised in view. see also: clm.utils.decorators.admin_cm_log
Parameters
http_request(HttpRequest)
login(POST string)
cm_id(POST int) session cm_id
password(POST string)
cm_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.admin.check_password()) + one additional kwarg: cm_id). View requests src.cm.views.admin.check_password() from CM and returns the response. For documentation see src.cm.views.admin.check_password()

Definition at line 34 of file admin.py.