Mercurial > piecrust2
diff piecrust/dataproviders/pageiterator.py @ 877:d6d35b2efd04
bake: Rename "pass" to "step" and make the page pipeline use different steps.
That pipeline is now first loading all pages, and then rendering full pages
unless they trigger a sub-render.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 15 Jun 2017 22:16:23 -0700 |
parents | 757fba54bfd3 |
children | 1d0364614665 |
line wrap: on
line diff
--- a/piecrust/dataproviders/pageiterator.py Thu Jun 15 07:33:40 2017 -0700 +++ b/piecrust/dataproviders/pageiterator.py Thu Jun 15 22:16:23 2017 -0700 @@ -3,7 +3,7 @@ from piecrust.data.paginationdata import PaginationData from piecrust.events import Event from piecrust.dataproviders.base import DataProvider -from piecrust.sources.base import ContentSource, AbortedSourceUseError +from piecrust.sources.base import ContentSource logger = logging.getLogger(__name__) @@ -240,17 +240,6 @@ if self._cache is not None: return - if self._is_content_source: - if self._source.app.env.abort_source_use: - if self._current_page is not None: - logger.debug("Aborting iteration of '%s' from: %s." % - (self._source.name, - self._current_page.content_spec)) - else: - logger.debug("Aborting iteration of '%s'." % - self._source.name) - raise AbortedSourceUseError() - self._ensureSorter() if self._is_content_source: