Code

Changes between Version 3 and Version 4 of PaginatorTag


Ignore:
Timestamp:
10/03/06 15:09:20 (8 years ago)
Author:
Jonathan Buchanan
Comment:

Docstring updated

Legend:

Unmodified
Added
Removed
Modified
  • PaginatorTag

    v3 v4  
    3434 
    3535def paginator(context, adjacent_pages=2): 
    36     """Adds pagination context variables for first, adjacent and next page links 
    37     in addition to those already populated by the object_list generic view.""" 
     36    """ 
     37    To be used in conjunction with the object_list generic view. 
     38 
     39    Adds pagination context variables for use in displaying first, adjacent and 
     40    last page links in addition to those created by the object_list generic 
     41    view. 
     42    """ 
    3843    page_numbers = [n for n in \ 
    3944                    range(context["page"] - adjacent_pages, context["page"] + adjacent_pages + 1) \