[dbapi] load_appobjects must attempt to load available cubicweb configurations to avoid error when some object use a persistent propery (CWProperty) defined there. Closes #2497697
--- a/dbapi.py Mon Oct 01 12:49:34 2012 +0200
+++ b/dbapi.py Fri Sep 28 17:49:54 2012 +0200
@@ -597,7 +597,12 @@
esubpath = list(subpath)
esubpath.remove('views')
esubpath.append(join('web', 'views'))
+ # first load available configs, necessary for proper persistent
+ # properties initialization
+ config.load_available_configs()
+ # then init cubes
config.init_cubes(cubes)
+ # then load appobjects into the registry
vpath = config.build_vregistry_path(reversed(config.cubes_path()),
evobjpath=esubpath,
tvobjpath=subpath)