server/migractions.py
branchstable
changeset 7782 40a49f4350a5
parent 7780 a1d5365fefc1
child 7797 a71618a75b53
child 7815 2a164a9cf81c
equal deleted inserted replaced
7781:e95cfd5eca61 7782:40a49f4350a5
   115                                   ClearGroupMap.mih_register, repo)
   115                                   ClearGroupMap.mih_register, repo)
   116             # notify we're starting maintenance (called instead of server_start
   116             # notify we're starting maintenance (called instead of server_start
   117             # which is called on regular start
   117             # which is called on regular start
   118             repo.hm.call_hooks('server_maintenance', repo=repo)
   118             repo.hm.call_hooks('server_maintenance', repo=repo)
   119         if not schema and not getattr(config, 'quick_start', False):
   119         if not schema and not getattr(config, 'quick_start', False):
   120             insert_lperms = self.repo.get_versions()['cubicweb'] < (3, 14, 0) and 'localperms' in config.available_cubes()
   120             schema = config.load_schema(expand_cubes=True)
   121             if insert_lperms:
       
   122                 cubes = config._cubes
       
   123                 config._cubes += ('localperms',)
       
   124             try:
       
   125                 schema = config.load_schema(expand_cubes=True)
       
   126             finally:
       
   127                 if insert_lperms:
       
   128                     config._cubes = cubes
       
   129         self.fs_schema = schema
   121         self.fs_schema = schema
   130         self._synchronized = set()
   122         self._synchronized = set()
   131 
   123 
   132     # overriden from base MigrationHelper ######################################
   124     # overriden from base MigrationHelper ######################################
   133 
   125