Mercurial > piecrust2
comparison 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 |
comparison
equal
deleted
inserted
replaced
853:f070a4fc033c | 854:08e02c2a2a1a |
---|---|
12 | 12 |
13 FORCE_BUILD = object() | 13 FORCE_BUILD = object() |
14 | 14 |
15 | 15 |
16 class ProcessorContext: | 16 class ProcessorContext: |
17 def __init__(self, pipeline, pipeline_ctx): | 17 def __init__(self, pipeline): |
18 self.ignore_patterns = [] | 18 self.ignore_patterns = [] |
19 self.extra_processors = [] | 19 self.extra_processors = [] |
20 self._pipeline = pipeline | 20 self._pipeline = pipeline |
21 self._pipeline_ctx = pipeline_ctx | 21 self._pipeline_ctx = pipeline.ctx |
22 | 22 |
23 @property | 23 @property |
24 def tmp_dir(self): | 24 def tmp_dir(self): |
25 return self._pipeline.tmp_dir | 25 return self._pipeline.tmp_dir |
26 | 26 |