diff piecrust/data/assetor.py @ 96:0445a2232de7

Improvements and fixes to incremental baking. * Better handling of the render pass during page rendering. * Used sources are paired with the pass they were used in. * Proper use and invalidation of the rendered segments cache based on render passes. * The `Assetor` is also better tracking what was used in a page. * Add flags on a page to get better caching information for the debug window. * Property invalidation of the previous bake record when needed. * Better information about why pages are delayed.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 07 Sep 2014 23:48:57 -0700
parents 62c7a97c8340
children 9f3fc17e71e1
line wrap: on
line diff
--- a/piecrust/data/assetor.py	Sun Sep 07 21:37:10 2014 -0700
+++ b/piecrust/data/assetor.py	Sun Sep 07 23:48:57 2014 -0700
@@ -57,10 +57,6 @@
         self._cacheAssets()
         return map(lambda i: i[0], self._cache.values())
 
-    def _getAssetPaths(self):
-        self._cacheAssets()
-        return map(lambda i: i[1], self._cache.values())
-
     def _debugRenderAssetNames(self):
         self._cacheAssets()
         return list(self._cache.keys())
@@ -91,5 +87,6 @@
 
         cpi = self._page.app.env.exec_info_stack.current_page_info
         if cpi is not None:
-            cpi.render_ctx.used_assets = self
+            used_assets = list(map(lambda i: i[1], self._cache.values()))
+            cpi.render_ctx.used_assets = used_assets