Beispiel #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")
Beispiel #2
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")
Beispiel #3
0
def _q_lookup(request, proj_id):
    if request.method == "POST":
        return fetch(request, proj_id)
    return error_message("bad request")