예제 #1
0
파일: views.py 프로젝트: pwilkins/nbproject
def edit_assignment(P, req): 
    uid = UR.getUserId(req)    
    if not auth.canEditAssignment(uid, P["id"]):
        return UR.prepare_response({}, 1,  "NOT ALLOWED")
    return UR.prepare_response({"files": annotations.edit_assignment(uid, P)})
예제 #2
0
def edit_assignment(P, req): 
    uid = UR.getUserId(req)    
    if not auth.canEditAssignment(uid, P["id"]):
        return UR.prepare_response({}, 1,  "NOT ALLOWED")
    return UR.prepare_response({"files": annotations.edit_assignment(uid, P)})