comparison 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
comparison
equal deleted inserted replaced
471:5b57a189fd98 472:dc78ade3f320
89 "Multiple asset files are named '%s'." % name) 89 "Multiple asset files are named '%s'." % name)
90 self._cache[name] = (base_url + fn, full_fn) 90 self._cache[name] = (base_url + fn, full_fn)
91 91
92 cpi = self._page.app.env.exec_info_stack.current_page_info 92 cpi = self._page.app.env.exec_info_stack.current_page_info
93 if cpi is not None: 93 if cpi is not None:
94 cpi.render_ctx.used_assets = True 94 cpi.render_ctx.current_pass_info.used_assets = True
95 95