--- a/dbapi.py Fri Oct 12 15:38:58 2012 +0200
+++ b/dbapi.py Fri Oct 12 16:05:16 2012 +0200
@@ -103,7 +103,7 @@
return Repository(config, TasksManager(), vreg=vreg)
elif method == 'zmq':
from cubicweb.zmqclient import ZMQRepositoryClient
- return ZMQRepositoryClient(config, vreg=vreg)
+ return ZMQRepositoryClient(database)
else: # method == 'pyro'
# resolve the Pyro object
from logilab.common.pyro_ext import ns_get_proxy, get_proxy
@@ -592,7 +592,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_appobjects_path(reversed(config.cubes_path()),
evobjpath=esubpath,
tvobjpath=subpath)