Mercurial > piecrust2
diff piecrust/pipelines/_pagerecords.py @ 871:504ddb370df8
refactor: Fixing some issues with baking assets.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 13 Jun 2017 22:30:27 -0700 |
parents | 08e02c2a2a1a |
children | 7169bf42ec60 |
line wrap: on
line diff
--- a/piecrust/pipelines/_pagerecords.py Mon Jun 12 22:30:06 2017 -0700 +++ b/piecrust/pipelines/_pagerecords.py Tue Jun 13 22:30:27 2017 -0700 @@ -50,6 +50,7 @@ super().__init__() self.flags = self.FLAG_NONE self.config = None + self.timestamp = None self.subs = [] @property @@ -108,7 +109,11 @@ 'URI': sub.out_uri, 'Path': sub.out_path, 'Flags': get_flag_descriptions( - sub.flags, sub_flag_descriptions) + sub.flags, sub_flag_descriptions), + 'RenderInfo': [ + _describe_render_info(sub.render_info[0]), + _describe_render_info(sub.render_info[1]) + ] } return d @@ -129,3 +134,12 @@ SubPagePipelineRecordEntry.FLAG_FORMATTING_INVALIDATED: 'formatting invalidated' } + + +def _describe_render_info(ri): + return { + 'UsedPagination': ri.used_pagination, + 'PaginationHasMore': ri.pagination_has_more, + 'UsedAssets': ri.used_assets, + 'UsedSourceNames': ri.used_source_names + }