Mercurial > piecrust2
diff piecrust/processing/base.py @ 854:08e02c2a2a1a
core: Keep refactoring, this time to prepare for generator sources.
- Make a few APIs simpler.
- Content pipelines create their own jobs, so that generator sources can
keep aborting in `getContents`, but rely on their pipeline to generate
pages for baking.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 04 Jun 2017 23:34:28 -0700 |
parents | 4850f8c21b6e |
children |
line wrap: on
line diff
--- a/piecrust/processing/base.py Sun May 21 00:06:59 2017 -0700 +++ b/piecrust/processing/base.py Sun Jun 04 23:34:28 2017 -0700 @@ -14,11 +14,11 @@ class ProcessorContext: - def __init__(self, pipeline, pipeline_ctx): + def __init__(self, pipeline): self.ignore_patterns = [] self.extra_processors = [] self._pipeline = pipeline - self._pipeline_ctx = pipeline_ctx + self._pipeline_ctx = pipeline.ctx @property def tmp_dir(self):