diff -r 019ab5eb37ea -r 70c87c717e4a dbapi.py --- a/dbapi.py Thu Oct 14 14:10:02 2010 +0200 +++ b/dbapi.py Thu Oct 14 14:10:45 2010 +0200 @@ -532,9 +532,8 @@ esubpath = list(subpath) esubpath.remove('views') esubpath.append(join('web', 'views')) - cubespath = [config.cube_dir(p) for p in cubes] - config.load_site_cubicweb(cubespath) - vpath = config.build_vregistry_path(reversed(cubespath), + config.init_cubes(cubes) + vpath = config.build_vregistry_path(reversed(config.cubes_path()), evobjpath=esubpath, tvobjpath=subpath) self.vreg.register_objects(vpath)