equal
deleted
inserted
replaced
102 from cubicweb.server.repository import Repository |
102 from cubicweb.server.repository import Repository |
103 from cubicweb.server.utils import TasksManager |
103 from cubicweb.server.utils import TasksManager |
104 return Repository(config, TasksManager(), vreg=vreg) |
104 return Repository(config, TasksManager(), vreg=vreg) |
105 elif method == 'zmq': |
105 elif method == 'zmq': |
106 from cubicweb.zmqclient import ZMQRepositoryClient |
106 from cubicweb.zmqclient import ZMQRepositoryClient |
107 return ZMQRepositoryClient(config, vreg=vreg) |
107 return ZMQRepositoryClient(database) |
108 else: # method == 'pyro' |
108 else: # method == 'pyro' |
109 # resolve the Pyro object |
109 # resolve the Pyro object |
110 from logilab.common.pyro_ext import ns_get_proxy, get_proxy |
110 from logilab.common.pyro_ext import ns_get_proxy, get_proxy |
111 pyroid = database or config['pyro-instance-id'] or config.appid |
111 pyroid = database or config['pyro-instance-id'] or config.appid |
112 try: |
112 try: |