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

Functions

def add
 Creates template of VM.
def delete
 Deletes template from available templates.
def edit
 Edits Template's components.
def get_by_id
 Returns requested Template.
def get_list
 Returns list of available Templates.

Function Documentation

def src.clm.views.admin_cm.template.add (   cm_response,
  data 
)

Creates template of VM.

Template has a name and some description. It defines VM's hardware parameters: CPU and memory. It also defines number of points utilized by VM created of it (per hour and overly).

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

Definition at line 38 of file template.py.

def src.clm.views.admin_cm.template.delete (   cm_response,
  data 
)

Deletes template from available templates.

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

Definition at line 51 of file template.py.

def src.clm.views.admin_cm.template.edit (   cm_response,
  data 
)

Edits Template's components.

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

Definition at line 64 of file template.py.

def src.clm.views.admin_cm.template.get_by_id (   cm_response,
  data 
)

Returns requested Template.

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

Definition at line 90 of file template.py.

def src.clm.views.admin_cm.template.get_list (   cm_response,
  data 
)

Returns list of available Templates.

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

Definition at line 77 of file template.py.