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

Functions

def add_ssh_key
def reboot
def reset_password
def shutdown

Function Documentation

def src.clm.views.user.ctx.add_ssh_key (   cm_id,
  caller_id,
  vm_key,
  vm_username,
  vm_ids 
)
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)
vm_key(POST string)
vm_username(POST string)
vm_ids(POST list(int))

Definition at line 67 of file ctx.py.

def src.clm.views.user.ctx.reboot (   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.ctx.reboot()) + one additional kwarg: cm_id). View requests src.cm.views.user.ctx.reboot() from CM and returns the response. For documentation see src.cm.views.user.ctx.reboot()

Definition at line 44 of file ctx.py.

def src.clm.views.user.ctx.reset_password (   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. All actual parameters of this function are kwargs (the same as required by corresponding CM view (src.cm.views.user.ctx.reset_password()) + one additional kwarg: cm_id). View requests src.cm.views.user.ctx.reset_password() from CM. CM response is processed and finally returned. see also: src.cm.views.user.ctx.reset_password()

Definition at line 55 of file ctx.py.

def src.clm.views.user.ctx.shutdown (   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.ctx.shutdown()) + one additional kwarg: cm_id). View requests src.cm.views.user.ctx.shutdown() from CM and returns the response. For documentation see src.cm.views.user.ctx.shutdown()

Definition at line 33 of file ctx.py.