Mercurial > piecrust2
comparison piecrust/serving.py @ 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 | 938be93215cb |
children | dd25bd3ce1f9 |
comparison
equal
deleted
inserted
replaced
342:d8677ad748f0 | 343:741e97e63048 |
---|---|
283 raise NotFound(message) | 283 raise NotFound(message) |
284 | 284 |
285 if entry is None: | 285 if entry is None: |
286 entry = ServeRecordPageEntry(req_path, page_num) | 286 entry = ServeRecordPageEntry(req_path, page_num) |
287 self._page_record.addEntry(entry) | 287 self._page_record.addEntry(entry) |
288 rdr_pass = render_ctx.current_pass_info | 288 for p, pinfo in render_ctx.render_passes.items(): |
289 entry.used_source_names = set(rdr_pass.used_source_names) | 289 entry.used_source_names |= pinfo.used_source_names |
290 | 290 |
291 # Profiling. | 291 # Profiling. |
292 if app.config.get('site/show_debug_info'): | 292 if app.config.get('site/show_debug_info'): |
293 now_time = time.clock() | 293 now_time = time.clock() |
294 timing_info = ('%8.1f ms' % | 294 timing_info = ('%8.1f ms' % |