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

Functions

def get_by_id
def get_list
 Returns list of Templates.

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.template.get_by_id (   caller_id,
  template_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)
template_id(POST int)
Returns
HttpResponse with JSON content:
  • response: response status,
  • data: (dict) Template.dict property of the requested Template

Definition at line 57 of file template.py.

def src.cm.views.user.template.get_list (   caller_id)

Returns list of Templates.

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: (list(dict)) Template.dict property of each Template

Definition at line 40 of file template.py.