예제 #1
0
파일: views.py 프로젝트: pwilkins/nbproject
def add_ensemble(payload, req): 
    uid = UR.getUserId(req)
    if uid is None: 
        return UR.prepare_response({}, 1,  "NOT ALLOWED")
    id = annotations.create_ensemble(uid,  payload)
    return UR.prepare_response(annotations.get_ensembles(uid, {"id": id}))
예제 #2
0
def add_ensemble(payload, req): 
    uid = UR.getUserId(req)
    if uid is None: 
        return UR.prepare_response({}, 1,  "NOT ALLOWED")
    id = annotations.create_ensemble(uid,  payload)
    return UR.prepare_response(annotations.get_ensembles(uid, {"id": id}))