web/application.py
changeset 2666 c6c832d32936
parent 2650 18aec79ec3a3
child 2685 0518ca8f63e3
equal deleted inserted replaced
2665:0c6281487f90 2666:c6c832d32936
   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())