dbapi.py
branchstable
changeset 8572 e54b3bc39011
parent 8571 7e5246889148
child 8573 ae0a567dff30
child 8585 3f60f416dddb
equal deleted inserted replaced
8571:7e5246889148 8572:e54b3bc39011
   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: