Mercurial > piecrust2
comparison piecrust/dataproviders/blog.py @ 982:492b66482f12
pagination: Fix bad bug where all pages triggered pagination.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 30 Oct 2017 00:08:12 -0700 |
parents | 45ad976712ec |
children | 57283302b3ee |
comparison
equal
deleted
inserted
replaced
979:45ad976712ec | 982:492b66482f12 |
---|---|
68 return list(self._app.config.get('site/taxonomies').keys()) | 68 return list(self._app.config.get('site/taxonomies').keys()) |
69 | 69 |
70 def _buildPosts(self): | 70 def _buildPosts(self): |
71 if self._posts is None: | 71 if self._posts is None: |
72 it = PageIterator(self._sources[0], current_page=self._page) | 72 it = PageIterator(self._sources[0], current_page=self._page) |
73 it._iter_event += self._onIteration | 73 it._load_event += self._onIteration |
74 self._posts = it | 74 self._posts = it |
75 | 75 |
76 def _buildArchives(self): | 76 def _buildArchives(self): |
77 if self._archives_built: | 77 if self._archives_built: |
78 return | 78 return |