equal
deleted
inserted
replaced
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 |