dbapi.py
changeset 9309 cd45a1cc9b38
parent 9255 46f41c3e1443
parent 9297 9a44436cd5a5
child 9396 e83cbc116352
equal deleted inserted replaced
9304:ff61b10e7415 9309:cd45a1cc9b38
   221                 group = 'cubicweb'
   221                 group = 'cubicweb'
   222             database = 'pyro://%s/%s.%s' % (host, group, database)
   222             database = 'pyro://%s/%s.%s' % (host, group, database)
   223     puri = urlparse(database)
   223     puri = urlparse(database)
   224     method = puri.scheme.lower()
   224     method = puri.scheme.lower()
   225     if method == 'inmemory':
   225     if method == 'inmemory':
   226         config = cwconfig.instance_configuration(puri.path)
   226         config = cwconfig.instance_configuration(puri.netloc)
   227     else:
   227     else:
   228         config = cwconfig.CubicWebNoAppConfiguration()
   228         config = cwconfig.CubicWebNoAppConfiguration()
   229     repo = get_repository(database, config=config)
   229     repo = get_repository(database, config=config)
   230     if method == 'inmemory':
   230     if method == 'inmemory':
   231         vreg = repo.vreg
   231         vreg = repo.vreg