diff piecrust/data/iterators.py @ 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 cd35d356ccce
children 53b9df2263dc
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):