示例#1
0
文件: views.py 项目: papain/nbproject
def save_settings(payload, req):
    uid = UR.getUserId(req)
    if uid is None:
        return UR.prepare_response({}, 1, "NOT ALLOWED")
    else:
        return UR.prepare_response(
            {"settings": annotations.save_settings(uid, payload)})
示例#2
0
def save_settings(payload, req): 
    uid = UR.getUserId(req);
    if uid is None:
        return UR.prepare_response({}, 1,  "NOT ALLOWED")      
    else:         
        return UR.prepare_response({"settings": annotations.save_settings(uid, payload)})