changeset 16:3a13b43e77c1

Correctly set the current page on a pagination slicer.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 18 Aug 2014 16:51:38 -0700
parents dc8a6ff88f37
children de6a296744f7
files piecrust/data/iterators.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/data/iterators.py	Mon Aug 18 16:51:16 2014 -0700
+++ b/piecrust/data/iterators.py	Mon Aug 18 16:51:38 2014 -0700
@@ -230,6 +230,7 @@
         self._pages = it_class(self._pages, *args, **kwargs)
         if self._pagination_slicer is None and it_class is SliceIterator:
             self._pagination_slicer = self._pages
+            self._pagination_slicer.current_page = self._current_page
         return self
 
     def _simpleNonSortedWrap(self, it_class, *args, **kwargs):