changeset 870:48d25fd68b8d

assets: Fix bug in assetor.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 12 Jun 2017 22:30:06 -0700
parents 41b0c94f9833
children 504ddb370df8
files piecrust/data/assetor.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/data/assetor.py	Mon Jun 12 22:22:42 2017 -0700
+++ b/piecrust/data/assetor.py	Mon Jun 12 22:30:06 2017 -0700
@@ -35,7 +35,7 @@
     def __getattr__(self, name):
         try:
             self._cacheAssets()
-            return self._cache[name].uri
+            return self._cache_map[name].uri
         except KeyError:
             raise AttributeError()
 
@@ -49,7 +49,7 @@
 
     def _debugRenderAssetNames(self):
         self._cacheAssets()
-        return list(self._cache.keys())
+        return list(self._cache_map.keys())
 
     def _cacheAssets(self):
         if self._cache_map is not None: