示例#1
0
def bookmarks(request):
    requester = AuroraAuthenticationBackend.get_user(
        AuroraAuthenticationBackend(), request.user.id)
    comment_list = Comment.query_bookmarks(requester)
    template = 'Comments/bookmarks_list.html'
    return render_to_response(template, {'comment_list': comment_list},
                              context_instance=RequestContext(request))
示例#2
0
文件: views.py 项目: bobschi/aurora
def bookmarks(request):
    requester = RequestContext(request)['user']
    comment_list = Comment.query_bookmarks(requester)
    template = 'Comments/bookmarks_list.html'
    return render_to_response(template, {'comment_list': comment_list}, context_instance=RequestContext(request))
示例#3
0
文件: views.py 项目: martflu/aurora
def bookmarks(request):
    requester = AuroraAuthenticationBackend.get_user(AuroraAuthenticationBackend(), request.user.id)
    comment_list = Comment.query_bookmarks(requester)
    template = 'Comments/bookmarks_list.html'
    return render_to_response(template, {'comment_list': comment_list}, context_instance=RequestContext(request))
示例#4
0
def bookmarks(request):
    requester = RequestContext(request)['user']
    comment_list = Comment.query_bookmarks(requester)
    template = 'Comments/bookmarks_list.html'
    return render_to_response(template, {'comment_list': comment_list},
                              context_instance=RequestContext(request))