cubicweb/server/repository.py
branch3.25
changeset 12130 4d874c2fbb5f
parent 12112 0a54f49314f6
child 12135 e814ba7e51dc
equal deleted inserted replaced
12129:6e5446b871d8 12130:4d874c2fbb5f
   305         self.hm.call_hooks('server_startup', repo=self)
   305         self.hm.call_hooks('server_startup', repo=self)
   306 
   306 
   307     # internals ###############################################################
   307     # internals ###############################################################
   308 
   308 
   309     def init_sources_from_database(self):
   309     def init_sources_from_database(self):
   310         if self.config.quick_start or 'CWSource' not in self.schema:  # 3.10 migration
   310         if self.config.quick_start:
   311             self.system_source.init_creating()
   311             self.system_source.init_creating()
   312             return
   312             return
   313         with self.internal_cnx() as cnx:
   313         with self.internal_cnx() as cnx:
   314             # FIXME: sources should be ordered (add_entity priority)
   314             # FIXME: sources should be ordered (add_entity priority)
   315             for sourceent in cnx.execute(
   315             for sourceent in cnx.execute(