changeset 290:9f3fc17e71e1

data: Temporary hack for asset URLs.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 05 Mar 2015 01:11:43 -0800
parents 9b75b49a4084
children 46842f71f31f
files piecrust/data/assetor.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/data/assetor.py	Thu Mar 05 00:27:01 2015 -0800
+++ b/piecrust/data/assetor.py	Thu Mar 05 01:11:43 2015 -0800
@@ -26,7 +26,9 @@
             {
                 '%path%': rel_assets_path,
                 '%uri%': uri})
-    return base_url.rstrip('/') + '/'
+    # TEMP HACK
+    # TODO: looks like we can get here with differently formatted URLs... :(
+    return app.config.get('site/root') + base_url.strip('/') + '/'
 
 
 class Assetor(object):