server/repository.py
branchstable
changeset 7550 183a61d1bab9
parent 7513 8f4422391e5a
child 7562 cdef82ca9eab
child 7573 c8f8762c986d
equal deleted inserted replaced
7549:465009397d91 7550:183a61d1bab9
   229 
   229 
   230     def init_sources_from_database(self):
   230     def init_sources_from_database(self):
   231         self.sources_by_eid = {}
   231         self.sources_by_eid = {}
   232         if self.config.quick_start \
   232         if self.config.quick_start \
   233                or not 'CWSource' in self.schema: # # 3.10 migration
   233                or not 'CWSource' in self.schema: # # 3.10 migration
       
   234             self.system_source.init_creating()
   234             return
   235             return
   235         session = self.internal_session()
   236         session = self.internal_session()
   236         try:
   237         try:
   237             # FIXME: sources should be ordered (add_entity priority)
   238             # FIXME: sources should be ordered (add_entity priority)
   238             for sourceent in session.execute(
   239             for sourceent in session.execute(