示例#1
0
文件: views.py 项目: Zerack/zoll.me
def edit_all(request, page=1):
    '''
    Displays a page very similar to the view all page, with the change that the images displays are ones
    owned by the currently logged in user, and clicking images goes direct to the edit page instead of the viewing page.
    
    Keyword Arguments:
    page -> String, matches \d+. The page of results to show. Defaults to 1. Less
            than one will result in page 1 being returned. Too large will result in
            the last page being returned.
            
    '''
    
    return render_to_response('xbmc_photos/all.html', get_td_all(request, 'edit', page), context_instance = RequestContext(request))
示例#2
0
文件: views.py 项目: Zerack/zoll.me
def view_all(request, page=1):
    '''
    Renders a page to view all uploaded photos, which are sorted from most recent to oldest. Paginates
    the results, and uses the page parameter to determine which page to show.
    
    Keyword Arguments:
    page -> String, matches \d+. The page of results to show. Defaults to 1. Less
            than one will result in page 1 being returned. Too large will result in
            the last page being returned.
    
    '''
    
    return render_to_response('xbmc_photos/all.html', get_td_all(request, 'view', page), context_instance = RequestContext(request))