Esempio n. 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')
Esempio n. 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')
Esempio n. 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')
Esempio n. 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')
Esempio n. 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')
Esempio n. 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')