From 514e82702232139ec76f36a6e1fa4b63f47c6990 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 9 Jun 2012 18:07:30 +0200 Subject: [PATCH] Fixed pagination example wrt new next_page_number behavior --- docs/topics/pagination.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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