equal
deleted
inserted
replaced
218 session_handler_fact=CookieSessionHandler, |
218 session_handler_fact=CookieSessionHandler, |
219 vreg=None): |
219 vreg=None): |
220 super(CubicWebPublisher, self).__init__() |
220 super(CubicWebPublisher, self).__init__() |
221 # connect to the repository and get instance's schema |
221 # connect to the repository and get instance's schema |
222 if vreg is None: |
222 if vreg is None: |
223 vreg = cwvreg.CubicWebRegistry(config, debug=debug) |
223 vreg = cwvreg.CubicWebVRegistry(config, debug=debug) |
224 self.vreg = vreg |
224 self.vreg = vreg |
225 self.info('starting web instance from %s', config.apphome) |
225 self.info('starting web instance from %s', config.apphome) |
226 self.repo = config.repository(vreg) |
226 self.repo = config.repository(vreg) |
227 if not vreg.initialized: |
227 if not vreg.initialized: |
228 self.config.init_cubes(self.repo.get_cubes()) |
228 self.config.init_cubes(self.repo.get_cubes()) |