コード例 #1
0
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")
コード例 #2
0
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)
コード例 #3
0
ファイル: htmlviews.py プロジェクト: eremzeit/beatwrit
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) 
コード例 #4
0
ファイル: jsonviews.py プロジェクト: eremzeit/beatwrit
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")