equal
deleted
inserted
replaced
218 # initialization now that we know cubes |
218 # initialization now that we know cubes |
219 self._get_pool().close(True) |
219 self._get_pool().close(True) |
220 for i in xrange(config['connections-pool-size']): |
220 for i in xrange(config['connections-pool-size']): |
221 self._available_pools.put_nowait(ConnectionsPool(self.sources)) |
221 self._available_pools.put_nowait(ConnectionsPool(self.sources)) |
222 self._shutting_down = False |
222 self._shutting_down = False |
223 if not config.creating: |
223 if not (config.creating or config.repairing): |
224 # call application level initialisation hooks |
224 # call instance level initialisation hooks |
225 self.hm.call_hooks('server_startup', repo=self) |
225 self.hm.call_hooks('server_startup', repo=self) |
226 # register a task to cleanup expired session |
226 # register a task to cleanup expired session |
227 self.looping_task(self.config['session-time']/3., |
227 self.looping_task(self.config['session-time']/3., |
228 self.clean_sessions) |
228 self.clean_sessions) |
229 |
229 |
453 |
453 |
454 def get_cubes(self): |
454 def get_cubes(self): |
455 """return the list of cubes used by this application. This is a |
455 """return the list of cubes used by this application. This is a |
456 public method, not requiring a session id. |
456 public method, not requiring a session id. |
457 """ |
457 """ |
458 versions = self.get_versions(not self.config.creating) |
458 versions = self.get_versions(not (self.config.creating |
|
459 or self.config.repairing)) |
459 cubes = list(versions) |
460 cubes = list(versions) |
460 cubes.remove('cubicweb') |
461 cubes.remove('cubicweb') |
461 return cubes |
462 return cubes |
462 |
463 |
463 @cached |
464 @cached |