server/__init__.py
changeset 6139 f76599a96238
parent 6126 aca6a2c357fd
child 6427 c8a5ac2d1eaa
equal deleted inserted replaced
6102:27c47d239739 6139:f76599a96238
   129     # configuration to avoid db schema loading and user'state checking
   129     # configuration to avoid db schema loading and user'state checking
   130     # on connection
   130     # on connection
   131     config.creating = True
   131     config.creating = True
   132     config.consider_user_state = False
   132     config.consider_user_state = False
   133     config.set_language = False
   133     config.set_language = False
   134     # only enable the system source at initialization time + admin which is not
   134     # only enable the system source at initialization time
   135     # an actual source but contains initial manager account information
   135     config.enabled_sources = ('system',)
   136     config.enabled_sources = ('system', 'admin')
       
   137     repo = Repository(config, vreg=vreg)
   136     repo = Repository(config, vreg=vreg)
   138     assert len(repo.sources) == 1, repo.sources
       
   139     schema = repo.schema
   137     schema = repo.schema
   140     sourcescfg = config.sources()
   138     sourcescfg = config.sources()
   141     _title = '-> creating tables '
   139     _title = '-> creating tables '
   142     print _title,
   140     print _title,
   143     source = sourcescfg['system']
   141     source = sourcescfg['system']