Commit ce905e23 authored by Julien Cristau's avatar Julien Cristau
Browse files

Rename cleanup_interface_sobjects into cleanup_unused_appobjects

Interfaces are gone in 3.18

Related to #2782004.
parent ce338133c92c
......@@ -327,7 +327,7 @@ class CubicWebNoAppConfiguration(ConfigurationMixIn):
# 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'
......
......@@ -653,13 +653,13 @@ class CWRegistryStore(RegistryStore):
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 @@ class CWRegistryStore(RegistryStore):
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 ####################################################
......
......@@ -46,7 +46,7 @@ class DevConfiguration(ServerConfiguration, WebConfiguration):
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment