Rename cleanup_interface_sobjects into cleanup_unused_appobjects
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 26 Aug 2013 11:36:19 +0200
changeset 9258 4e79f587c6ab
parent 9257 ce338133c92c
child 9259 68cde7431c2c
Rename cleanup_interface_sobjects into cleanup_unused_appobjects Interfaces are gone in 3.18 Related to #2782004.
cwconfig.py
cwvreg.py
devtools/devctl.py
--- a/cwconfig.py	Mon Aug 26 16:15:29 2013 +0200
+++ b/cwconfig.py	Mon Aug 26 11:36:19 2013 +0200
@@ -327,7 +327,7 @@
     # the format below can be useful to debug multi thread issues:
     # log_format = '%(asctime)s - [%(threadName)s] (%(name)s) %(levelname)s: %(message)s'
     # nor remove appobjects based on unused interface [???]
-    cleanup_interface_sobjects = True
+    cleanup_unused_appobjects = True
 
     if (CWDEV and _forced_mode != 'system'):
         mode = 'user'
--- a/cwvreg.py	Mon Aug 26 16:15:29 2013 +0200
+++ b/cwvreg.py	Mon Aug 26 11:36:19 2013 +0200
@@ -653,13 +653,13 @@
     def initialization_completed(self):
         """cw specific code once vreg initialization is completed:
 
-        * remove objects requiring a missing interface, unless
-          config.cleanup_interface_sobjects is false
+        * remove objects requiring a missing appobject, unless
+          config.cleanup_unused_appobjects is false
         * init rtags
         """
         # we may want to keep interface dependent objects (e.g.for i18n
         # catalog generation)
-        if self.config.cleanup_interface_sobjects:
+        if self.config.cleanup_unused_appobjects:
             # remove appobjects which depend on other, unexistant appobjects
             for obj, (regname, regids) in self._needs_appobject.items():
                 try:
@@ -679,8 +679,8 @@
         if 'uicfg' in self: # 'uicfg' is not loaded in a pure repository mode
             for rtags in self['uicfg'].itervalues():
                 for rtag in rtags:
-                    # don't check rtags if we don't want to cleanup_interface_sobjects
-                    rtag.init(self.schema, check=self.config.cleanup_interface_sobjects)
+                    # don't check rtags if we don't want to cleanup_unused_appobjects
+                    rtag.init(self.schema, check=self.config.cleanup_unused_appobjects)
 
     # rql parsing utilities ####################################################
 
--- a/devtools/devctl.py	Mon Aug 26 16:15:29 2013 +0200
+++ b/devtools/devctl.py	Mon Aug 26 11:36:19 2013 +0200
@@ -46,7 +46,7 @@
     a cube or for cubicweb (without a home)
     """
     creating = True
-    cleanup_interface_sobjects = False
+    cleanup_unused_appobjects = False
 
     cubicweb_appobject_path = (ServerConfiguration.cubicweb_appobject_path
                                | WebConfiguration.cubicweb_appobject_path)