Mercurial > piecrust2
comparison piecrust/sources/taxonomy.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 | d1095774bfcf |
children | acd9c3e8533f |
comparison
equal
deleted
inserted
replaced
876:d1095774bfcf | 877:d6d35b2efd04 |
---|---|
237 self.term = None | 237 self.term = None |
238 | 238 |
239 | 239 |
240 class TaxonomyPipeline(ContentPipeline): | 240 class TaxonomyPipeline(ContentPipeline): |
241 PIPELINE_NAME = 'taxonomy' | 241 PIPELINE_NAME = 'taxonomy' |
242 PASS_NUM = 1 | 242 PASS_NUM = 10 |
243 RECORD_ENTRY_CLASS = TaxonomyPipelineRecordEntry | 243 RECORD_ENTRY_CLASS = TaxonomyPipelineRecordEntry |
244 | 244 |
245 def __init__(self, source, ctx): | 245 def __init__(self, source, ctx): |
246 if not isinstance(source, TaxonomySource): | 246 if not isinstance(source, TaxonomySource): |
247 raise Exception("The taxonomy pipeline only supports taxonomy " | 247 raise Exception("The taxonomy pipeline only supports taxonomy " |