diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-06-09 18:07:30 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-06-09 18:07:30 +0200 |
| commit | 514e82702232139ec76f36a6e1fa4b63f47c6990 (patch) | |
| tree | 32bb3464749ed504eeea7262a67259c2e2788263 /docs | |
| parent | fc40a6504b78e604a6ba90a3b85b1ed54ee238a2 (diff) | |
Fixed pagination example wrt new next_page_number behavior
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/pagination.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/topics/pagination.txt b/docs/topics/pagination.txt index 72560469a8..6c3ab77b11 100644 --- a/docs/topics/pagination.txt +++ b/docs/topics/pagination.txt @@ -43,7 +43,9 @@ page:: >>> page2.has_other_pages() True >>> page2.next_page_number() - 3 + Traceback (most recent call last): + ... + EmptyPage: That page contains no results >>> page2.previous_page_number() 1 >>> page2.start_index() # The 1-based index of the first item on this page |
