Esempio n. 1
0
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")
Esempio n. 2
0
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)
Esempio n. 3
0
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) 
Esempio n. 4
0
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")