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