# HG changeset patch # User Julien Cristau # Date 1377509779 -7200 # Node ID 4e79f587c6ab9cf189fe7cce98162025e81bff1d # Parent ce338133c92c6caa7a4a778987da02ad41576e3e Rename cleanup_interface_sobjects into cleanup_unused_appobjects Interfaces are gone in 3.18 Related to #2782004. diff -r ce338133c92c -r 4e79f587c6ab cwconfig.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' diff -r ce338133c92c -r 4e79f587c6ab cwvreg.py --- 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 #################################################### diff -r ce338133c92c -r 4e79f587c6ab devtools/devctl.py --- 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)