Mercurial > piecrust2
changeset 343:741e97e63048
serve: Don't access the current render pass info after rendering is done.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 06 Apr 2015 22:49:46 -0700 |
parents | d8677ad748f0 |
children | bf32be298b89 |
files | piecrust/serving.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/serving.py Mon Apr 06 22:28:03 2015 -0700 +++ b/piecrust/serving.py Mon Apr 06 22:49:46 2015 -0700 @@ -285,8 +285,8 @@ if entry is None: entry = ServeRecordPageEntry(req_path, page_num) self._page_record.addEntry(entry) - rdr_pass = render_ctx.current_pass_info - entry.used_source_names = set(rdr_pass.used_source_names) + for p, pinfo in render_ctx.render_passes.items(): + entry.used_source_names |= pinfo.used_source_names # Profiling. if app.config.get('site/show_debug_info'):