Changes between Version 1 and Version 2 of Ticket #28032


Ignore:
Timestamp:
Apr 6, 2017, 3:11:01 AM (8 years ago)
Author:
Ian Foote
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28032 – Description

    v1 v2  
    33
    44{{{
    5  try:
    6         contacts = paginator.page(page)
    7     except PageNotAnInteger:
    8         # If page is not an integer, deliver first page.
    9         contacts = paginator.page(1)
    10     except EmptyPage:
    11         # If page is out of range (e.g. 9999), deliver last page of results.
    12         contacts = paginator.page(paginator.num_pages)
     5try:
     6    contacts = paginator.page(page)
     7except PageNotAnInteger:
     8    # If page is not an integer, deliver first page.
     9    contacts = paginator.page(1)
     10except EmptyPage:
     11    # If page is out of range (e.g. 9999), deliver last page of results.
     12    contacts = paginator.page(paginator.num_pages)
    1313}}}
    1414
Back to Top