changeset 831:18978cf6d1ac

Removed pointless page argument from copyAssets
author Ben Artin <ben@artins.org>
date Wed, 11 Jan 2017 23:58:12 -0500
parents a12ad254176e
children 61878590bf96
files piecrust/baking/single.py piecrust/data/assetor.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/baking/single.py	Wed Jan 11 23:56:51 2017 -0500
+++ b/piecrust/baking/single.py	Wed Jan 11 23:58:12 2017 -0500
@@ -166,7 +166,7 @@
                 logger.debug("Copying page assets to: %s" % out_assets_dir)
                 _ensure_dir_exists(out_assets_dir)
 
-                qualified_page.source.buildAssetor(qualified_page, sub_uri).copyAssets(qualified_page, out_assets_dir)
+                qualified_page.source.buildAssetor(qualified_page, sub_uri).copyAssets(out_assets_dir)
 
             # Figure out if we have more work.
             has_more_subs = False
--- a/piecrust/data/assetor.py	Wed Jan 11 23:56:51 2017 -0500
+++ b/piecrust/data/assetor.py	Wed Jan 11 23:58:12 2017 -0500
@@ -94,8 +94,8 @@
         if cpi is not None:
             cpi.render_ctx.current_pass_info.used_assets = True
             
-    def copyAssets(self, page, dest_dir):
-        page_pathname, _ = os.path.splitext(page.path)
+    def copyAssets(self, dest_dir):
+        page_pathname, _ = os.path.splitext(self._page.path)
         in_assets_dir = page_pathname + ASSET_DIR_SUFFIX
         for fn in os.listdir(in_assets_dir):
             full_fn = os.path.join(in_assets_dir, fn)