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')
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')
def rpc(request): show_data = shows.get_show(request.POST['search'], request.user) data = simplejson.dumps(show_data) return HttpResponse(data, mimetype='application/json')