cc1
v2.1
CC1 source code docs
|
Functions | |
def | add |
Creates and saves new News. | |
def | delete |
Deletes permanently specified News. | |
def | edit |
def | get_by_id |
def src.clm.views.admin_clm.news.add | ( | cm_id, | |
caller_id, | |||
topic = '' , |
|||
content = '' , |
|||
sticky = False |
|||
) |
Creates and saves new News.
Such a News appears on the Web Interface's home screen.
http_request | (HttpRequest ) |
cm_id | (POST int ) session cm_id |
login | (POST string ) |
admin_password | (POST string ) |
topic | (POST string ) |
content | (POST string ) |
sticky | (POST bool ) whether the News should stay displayed long-term |
def src.clm.views.admin_clm.news.delete | ( | cm_id, | |
caller_id, | |||
news_id | |||
) |
Deletes permanently specified News.
Deleted News can i no way be recovered.
http_request | (HttpRequest ) |
cm_id | (POST int ) session cm_id |
login | (POST string ) |
admin_password | (POST string ) |
news_id | (POST int ) id of the News to delete |
def src.clm.views.admin_clm.news.edit | ( | cm_id, | |
caller_id, | |||
news_id, | |||
topic = None , |
|||
content = None , |
|||
sticky = None |
|||
) |
http_request | (HttpRequest ) |
cm_id | (POST int ) session cm_id |
login | (POST string ) |
admin_password | (POST string ) |
news_id | (POST int ) id of the News to edit |
topic | (POST string ) new topic of the News |
content | (POST string ) new content of the News |
sticky | (POST bool ) whether the News should stay displayed long-term |
def src.clm.views.admin_clm.news.get_by_id | ( | cm_id, | |
caller_id, | |||
news_id | |||
) |
http_request | (HttpRequest ) |
cm_id | (POST int ) session cm_id |
login | (POST string ) |
admin_password | (POST string ) |
news_id | (POST) |
dict
) dict property of the requested News