示例#1
0
def _q_lookup(request, proj_id):
    if request.method == "POST":
        return new(request, proj_id)
    elif request.method == "DELETE":
        return remove(request, proj_id)
    elif request.method == "GET":
        return has_watched(request, proj_id)
    else:
        return error_message("bad request")
示例#2
0
文件: watch.py 项目: 000fan000/code
def _q_lookup(request, proj_id):
    if request.method == "POST":
        return new(request, proj_id)
    elif request.method == "DELETE":
        return remove(request, proj_id)
    elif request.method == "GET":
        return has_watched(request, proj_id)
    else:
        return error_message("bad request")
示例#3
0
def _q_lookup(request, proj_id):
    if request.method == "POST":
        return fetch(request, proj_id)
    return error_message("bad request")