Mercurial > piecrust2
comparison piecrust/data/paginator.py @ 979:45ad976712ec
tests: Big push to get the tests to pass again.
- Lots of fixes everywhere in the code.
- Try to handle debug logging in the multiprocessing worker pool when running in pytest. Not perfect, but usable for now.
- Replace all `.md` test files with `.html` since now a auto-format extension always sets the format.
- Replace `out` with `outfiles` in most places since now blog archives are added to the bake output and I don't want to add expected outputs for blog archives everywhere.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 29 Oct 2017 22:51:57 -0700 |
parents | b9374b3682f0 |
children | 492b66482f12 |
comparison
equal
deleted
inserted
replaced
978:7e51d14097cb | 979:45ad976712ec |
---|---|
206 offset = (self._sub_num - 1) * self.items_per_page | 206 offset = (self._sub_num - 1) * self.items_per_page |
207 limit = self.items_per_page | 207 limit = self.items_per_page |
208 self._iterator.slice(offset, limit) | 208 self._iterator.slice(offset, limit) |
209 | 209 |
210 self._iterator._lockIterator() | 210 self._iterator._lockIterator() |
211 self._iterator._load() | |
211 | 212 |
212 if isinstance(self._source, ContentSource): | 213 if isinstance(self._source, ContentSource): |
213 self._onIteration(self._iterator) | 214 self._onIteration(self._iterator) |
214 | 215 |
215 def _getPageUri(self, index): | 216 def _getPageUri(self, index): |