예제 #1
0
def rpc_guest(request):
    following = request.GET['following'].split(",")
    show_data = shows.get_show(request.GET['showname'], None)
    if "showid" in show_data and str(show_data["showid"]) in following:
        show_data = {"do_nothing": True}
    data = simplejson.dumps(show_data)

    return HttpResponse(data, mimetype='application/json')
예제 #2
0
def rpc_guest(request):
    following = request.GET['following'].split(",")
    show_data = shows.get_show(request.GET['showname'], None)
    if "showid" in show_data and str(show_data["showid"]) in following:
        show_data = {"do_nothing": True}
    data = simplejson.dumps(show_data)

    return HttpResponse(data, mimetype='application/json')
예제 #3
0
def search_show(request):
    show_data = None
    user = _validate_token(request)
    if user:
        search = request.GET.get('search', '')
        show_data = shows.get_show(search, user, client=True)

    data = simplejson.dumps(show_data)
    return HttpResponse(data, mimetype='application/json')
예제 #4
0
def search_show(request):
    show_data = None
    user = _validate_token(request)
    if user:
        search = request.GET.get('search', '')
        show_data = shows.get_show(search, user, client=True)

    data = simplejson.dumps(show_data)
    return HttpResponse(data, mimetype='application/json')
예제 #5
0
def rpc(request):
    show_data = shows.get_show(request.POST['search'], request.user)
    data = simplejson.dumps(show_data)

    return HttpResponse(data, mimetype='application/json')
예제 #6
0
def rpc(request):
    show_data = shows.get_show(request.POST['search'], request.user)
    data = simplejson.dumps(show_data)

    return HttpResponse(data, mimetype='application/json')