@cache_page(60 * 5)
def issue_archive(request, page=1):
    """
    Shows a paginated list of issues.
    """
    try:
        page = int(page)
    except __HOLE__:
        raise Http404
    
    site = Site.objects.get_current()
    try:
        issues = Issue.objects.filter(volume__publication__site=site)
    except:
        raise Http404
    
    archive_name = 'Issues'
    
    paginator = Paginator(issues, 20)
    
    try:
        archive_page = paginator.page(page)
    except (EmptyPage, InvalidPage):
        raise Http404
    
    page = {
        'archive_name': archive_name,
        'archive_page': archive_page
    }
    
    return render_to_response('publishing/archive.html', page, context_instance=RequestContext(request))
dataset/ETHPy150Open albatrossandco/brubeck_cms/brubeck/publishing/views.py/issue_archive