replaced hardcoded 'web/view' by os.path.join('web', 'view') so views path is also valid under windows stable
authoregazoni
Fri, 07 May 2010 15:25:09 +0200
branchstable
changeset 5500 55a40cc0ab9a
parent 5499 2a5cc708c2a0
child 5501 1af69779f597
replaced hardcoded 'web/view' by os.path.join('web', 'view') so views path is also valid under windows
dbapi.py
web/webconfig.py
--- a/dbapi.py	Fri May 07 15:03:03 2010 +0200
+++ b/dbapi.py	Fri May 07 15:25:09 2010 +0200
@@ -553,7 +553,7 @@
         if 'views' in subpath:
             esubpath = list(subpath)
             esubpath.remove('views')
-            esubpath.append('web/views')
+            esubpath.append(join('web', 'views'))
         cubes = reversed([config.cube_dir(p) for p in cubes])
         vpath = config.build_vregistry_path(cubes, evobjpath=esubpath,
                                             tvobjpath=subpath)
--- a/web/webconfig.py	Fri May 07 15:03:03 2010 +0200
+++ b/web/webconfig.py	Fri May 07 15:25:09 2010 +0200
@@ -75,7 +75,7 @@
     """the WebConfiguration is a singleton object handling instance's
     configuration and preferences
     """
-    cubicweb_appobject_path = CubicWebConfiguration.cubicweb_appobject_path | set(['web/views'])
+    cubicweb_appobject_path = CubicWebConfiguration.cubicweb_appobject_path | set([join('web', 'views')])
     cube_appobject_path = CubicWebConfiguration.cube_appobject_path | set(['views'])
 
     options = merge_options(CubicWebConfiguration.options + (