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 schema = config.load_schema(expand_cubes=True) |
120 insert_lperms = self.repo.get_versions()['cubicweb'] < (3, 14, 0) and 'localperms' in config.available_cubes() |
|
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 |
121 self.fs_schema = schema |
129 self.fs_schema = schema |
122 self._synchronized = set() |
130 self._synchronized = set() |
123 |
131 |
124 # overriden from base MigrationHelper ###################################### |
132 # overriden from base MigrationHelper ###################################### |
125 |
133 |