Mercurial > piecrust2
comparison piecrust/data/base.py @ 415:0e9a94b7fdfa
bake: Improve bake record information.
* Store things in the bake record that require less interaction between the
master process and the workers. For instance, don't store the paginator
object in the render pass info -- instead, just store whether pagination
was used, and whether it had more items.
* Simplify information passing between workers and bake passes by saving the
rendering info to the JSON cache. This means the "render first sub" job
doesn't have to return anything except errors now.
* Add more performance counter info.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 20 Jun 2015 19:23:16 -0700 |
parents | fd8e39254da0 |
children | f1b759c188b0 |
comparison
equal
deleted
inserted
replaced
414:c4b3a7fd2f87 | 415:0e9a94b7fdfa |
---|---|
194 QualifiedPage, PageRenderingContext, | 194 QualifiedPage, PageRenderingContext, |
195 render_page_segments) | 195 render_page_segments) |
196 qp = QualifiedPage(self._page, self._route, | 196 qp = QualifiedPage(self._page, self._route, |
197 self._route_metadata) | 197 self._route_metadata) |
198 ctx = PageRenderingContext(qp) | 198 ctx = PageRenderingContext(qp) |
199 segs = render_page_segments(ctx) | 199 render_result = render_page_segments(ctx) |
200 segs = render_result.segments | |
200 except Exception as e: | 201 except Exception as e: |
201 raise Exception( | 202 raise Exception( |
202 "Error rendering segments for '%s'" % uri) from e | 203 "Error rendering segments for '%s'" % uri) from e |
203 else: | 204 else: |
204 segs = {} | 205 segs = {} |