Mercurial > piecrust2
diff piecrust/data/assetor.py @ 472:dc78ade3f320
bug: Fix copying of page assets during the bake.
* The `Assetor` wasn't setting the "used assets" flag on the correct object.
(I wonder why Python didn't complain about that)
* The baker wasn't looking at the right input filename.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 14 Jul 2015 23:41:25 -0700 |
parents | 0e9a94b7fdfa |
children | 22c6f6a3d0a0 |
line wrap: on
line diff
--- a/piecrust/data/assetor.py Tue Jul 14 23:13:16 2015 -0700 +++ b/piecrust/data/assetor.py Tue Jul 14 23:41:25 2015 -0700 @@ -91,5 +91,5 @@ cpi = self._page.app.env.exec_info_stack.current_page_info if cpi is not None: - cpi.render_ctx.used_assets = True + cpi.render_ctx.current_pass_info.used_assets = True