[config] kill a getattr
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 09 Jul 2014 15:38:39 +0200
changeset 10084 eb3681e13ed9
parent 10083 afc5615aa92b
child 10085 dc315002a2d4
[config] kill a getattr
cwconfig.py
server/migractions.py
--- a/cwconfig.py	Wed Dec 03 11:36:05 2014 +0100
+++ b/cwconfig.py	Wed Jul 09 15:38:39 2014 +0200
@@ -329,6 +329,8 @@
     # nor remove appobjects based on unused interface [???]
     cleanup_unused_appobjects = True
 
+    quick_start = False
+
     if (CWDEV and _forced_mode != 'system'):
         mode = 'user'
         _CUBES_DIR = join(CW_SOFTWARE_ROOT, '../cubes')
--- a/server/migractions.py	Wed Dec 03 11:36:05 2014 +0100
+++ b/server/migractions.py	Wed Jul 09 15:38:39 2014 +0200
@@ -112,7 +112,7 @@
             # notify we're starting maintenance (called instead of server_start
             # which is called on regular start
             repo.hm.call_hooks('server_maintenance', repo=repo)
-        if not schema and not getattr(config, 'quick_start', False):
+        if not schema and not config.quick_start:
             insert_lperms = self.repo.get_versions()['cubicweb'] < (3, 14, 0) and 'localperms' in config.available_cubes()
             if insert_lperms:
                 cubes = config._cubes