equal
deleted
inserted
replaced
274 def __init__(self, config, |
274 def __init__(self, config, |
275 session_handler_fact=CookieSessionHandler, |
275 session_handler_fact=CookieSessionHandler, |
276 vreg=None): |
276 vreg=None): |
277 self.info('starting web instance from %s', config.apphome) |
277 self.info('starting web instance from %s', config.apphome) |
278 if vreg is None: |
278 if vreg is None: |
279 vreg = cwvreg.CubicWebVRegistry(config) |
279 vreg = cwvreg.CWRegistryStore(config) |
280 self.vreg = vreg |
280 self.vreg = vreg |
281 # connect to the repository and get instance's schema |
281 # connect to the repository and get instance's schema |
282 self.repo = config.repository(vreg) |
282 self.repo = config.repository(vreg) |
283 if not vreg.initialized: |
283 if not vreg.initialized: |
284 config.init_cubes(self.repo.get_cubes()) |
284 config.init_cubes(self.repo.get_cubes()) |