Mercurial > piecrust2
comparison piecrust/sources/default.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 | f070a4fc033c |
| children | fddaf43424e2 |
comparison
equal
deleted
inserted
replaced
| 853:f070a4fc033c | 854:08e02c2a2a1a |
|---|---|
| 14 | 14 |
| 15 class DefaultContentSource(FSContentSource, | 15 class DefaultContentSource(FSContentSource, |
| 16 SimpleAssetsSubDirMixin, | 16 SimpleAssetsSubDirMixin, |
| 17 IPreparingSource, IInteractiveSource): | 17 IPreparingSource, IInteractiveSource): |
| 18 SOURCE_NAME = 'default' | 18 SOURCE_NAME = 'default' |
| 19 DEFAULT_PIPELINE_NAME = 'page' | |
| 19 | 20 |
| 20 def __init__(self, app, name, config): | 21 def __init__(self, app, name, config): |
| 21 super().__init__(app, name, config) | 22 super().__init__(app, name, config) |
| 22 | 23 |
| 23 config.setdefault('data_type', 'page_iterator') | 24 config.setdefault('data_type', 'page_iterator') |
