Mercurial > piecrust2
comparison piecrust/dataproviders/pageiterator.py @ 856:9bb22bbe093c
refactor: Make the blog archives functional again.
The blog archives are using the same pattern as the taxonomy support.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 06 Jun 2017 01:23:25 -0700 |
parents | 08e02c2a2a1a |
children | 757fba54bfd3 |
comparison
equal
deleted
inserted
replaced
855:448710d84121 | 856:9bb22bbe093c |
---|---|
188 self._ensureUnlocked() | 188 self._ensureUnlocked() |
189 self._ensureUnloaded() | 189 self._ensureUnloaded() |
190 self._it = it_class(self._it, *args, **kwargs) | 190 self._it = it_class(self._it, *args, **kwargs) |
191 return self | 191 return self |
192 | 192 |
193 def _wrapAsSort(self, sort_it_class, *args, **kwargs): | |
194 self._ensureUnlocked() | |
195 self._ensureUnloaded() | |
196 self._it = sort_it_class(self._it, *args, **kwargs) | |
197 self._has_sorter = True | |
198 return self | |
199 | |
193 def _lockIterator(self): | 200 def _lockIterator(self): |
194 self._ensureUnlocked() | 201 self._ensureUnlocked() |
195 self._locked = True | 202 self._locked = True |
196 | 203 |
197 def _ensureUnlocked(self): | 204 def _ensureUnlocked(self): |