def circle_writs(request, bwuid): params = utils.ParameterCleaner.clean(get_writs_legal_params, request.GET) bwuser = BeatwritUser.objects.get(id=bwuid) w = WritsAccessor(request.user.beatwrituser).users_circle_by_date( bwuser, pagenum=params['p'], pagesize=params['ps']) w = main.jsonmodels.BeatwritJSON.json_all(w) return HttpResponse(w, mimetype="application/json")
def circle_writs(request, bwuid): params = utils.ParameterCleaner.clean(get_writs_legal_params, request.GET) bwuser = BeatwritUser.objects.get(id=bwuid) writs = WritsAccessor(request.user.beatwrituser).users_circle_by_date( bwuser, pagenum=params['p'], pagesize=params['ps']) html = main.html.WritListWidgetHTML.active_writs(writs) return HttpResponse(html)
def community_writs(request, bwuid): params = utils.ParameterCleaner.clean(get_writs_legal_params, request.GET) bwuser = BeatwritUser.objects.get(id=bwuid) writs = WritsAccessor.community_by_date(bwuser, pagenum=params['p'], pagesize=params['ps']) html = main.html.WritListWidgetHTML.active_writs(writs) return HttpResponse(html)
def community_writs(request, bwuid): params = utils.ParameterCleaner.clean(get_writs_legal_params, request.GET) bwuser = BeatwritUser.objects.get(id=bwuid) w = WritsAccessor.community_by_date(bwuser, pagenum=params['p'], pagesize=params['ps']) w = main.jsonmodels.BeatwritJSON.json_all(w) return HttpResponse(w, mimetype="application/json")