# HG changeset patch # User Sylvain Thénault # Date 1348847394 -7200 # Node ID 7e5246889148f7117bbd988a32699d7cefd52e26 # Parent 56d9eb013feb0c2d30b29ca70911b5cfb790cc5c [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 diff -r 56d9eb013feb -r 7e5246889148 dbapi.py --- 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)