Mercurial > piecrust2
comparison piecrust/pipelines/_pagerecords.py @ 875:7169bf42ec60
showrecord: Prevent a crash.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 15 Jun 2017 07:32:19 -0700 |
parents | 504ddb370df8 |
children | abc52a6262a1 |
comparison
equal
deleted
inserted
replaced
874:f4608e2e80ce | 875:7169bf42ec60 |
---|---|
135 'formatting invalidated' | 135 'formatting invalidated' |
136 } | 136 } |
137 | 137 |
138 | 138 |
139 def _describe_render_info(ri): | 139 def _describe_render_info(ri): |
140 if ri is None: | |
141 return '<null>' | |
140 return { | 142 return { |
141 'UsedPagination': ri.used_pagination, | 143 'UsedPagination': ri.used_pagination, |
142 'PaginationHasMore': ri.pagination_has_more, | 144 'PaginationHasMore': ri.pagination_has_more, |
143 'UsedAssets': ri.used_assets, | 145 'UsedAssets': ri.used_assets, |
144 'UsedSourceNames': ri.used_source_names | 146 'UsedSourceNames': ri.used_source_names |