cc1
v2.1
CC1 source code docs
|
Functions | |
def | add |
Adds given Key named name with content key to caller's keys list. | |
def | delete |
Method deletes specified key named name . | |
def | delete_by_id |
Method removes key with id id . | |
def | generate |
Generates Key pair named name for caller. | |
def | get |
Returns the requested Key's. | |
def | get_list |
Returns caller's Keys. |
def src.clm.views.user.key.add | ( | cm_id, | |
caller_id, | |||
key, | |||
name | |||
) |
Adds given Key named name
with content key
to caller's keys list.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
key | (POST string ) key's content |
name | (POST string ) key's name |
None
) def src.clm.views.user.key.delete | ( | cm_id, | |
caller_id, | |||
name | |||
) |
Method deletes specified key named name
.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
name | (POST string ) name of the Key to delete |
None
) def src.clm.views.user.key.delete_by_id | ( | cm_id, | |
caller_id, | |||
key_ids | |||
) |
Method removes key with id id
.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
key_ids | (POST list(int) ) list of Key ids to delete |
dict
) status
(string
)data
(dict
) def src.clm.views.user.key.generate | ( | cm_id, | |
caller_id, | |||
name | |||
) |
Generates Key pair named name
for caller.
Public part of that Key is stored in database with specified name, whereas content of the private Key part is returned. Neither public, nor private part of the key is saved to file. Private part of the key is never stored - it's only returned once.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
name | (POST string ) Key's name |
string
) content of private Key's file def src.clm.views.user.key.get | ( | cm_id, | |
caller_id, | |||
name | |||
) |
Returns the requested Key's.
Key must belong to the caller.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
name | (POST string ) Requested Key's name |
dict
) Key.dict property of the requested key def src.clm.views.user.key.get_list | ( | cm_id, | |
caller_id | |||
) |
Returns caller's Keys.
http_request | (HttpRequest ) |
login | (POST string ) |
cm_id | (POST int ) session cm_id |
password | (POST string ) |
list(dict)
) Key.dict property of each Key