# HG changeset patch # User Philippe Pepiot # Date 1485263353 -3600 # Node ID a88101bf9f87e05d526511da4f7513de82e2c3cb # Parent f0bc9ca93e219fe0cfdcb9e394edac5c9b1cca9d [cwconfig] make appobjects_cubes_modnames() public The method is used in cubicweb.cwvreg without underscore and outside of the config class, so let's make this method public. Fix autoreload with twisted. diff -r f0bc9ca93e21 -r a88101bf9f87 cubicweb/cwconfig.py --- a/cubicweb/cwconfig.py Fri Jan 20 09:55:08 2017 +0100 +++ b/cubicweb/cwconfig.py Tue Jan 24 14:09:13 2017 +0100 @@ -1328,7 +1328,7 @@ appobjects.insert(0, appobjects.pop(index)) return appobjects - def _appobjects_cube_modnames(self, cube): + def appobjects_cube_modnames(self, cube): modnames = [] cube_submodnames = self._sorted_appobjects(self.cube_appobject_path) for name in cube_submodnames: @@ -1342,7 +1342,7 @@ for modname, filepath in _expand_modname('cubicweb.' + name): modnames.append(modname) for cube in reversed(self.cubes()): - modnames.extend(self._appobjects_cube_modnames(cube)) + modnames.extend(self.appobjects_cube_modnames(cube)) if self.apphome: cube_submodnames = self._sorted_appobjects(self.cube_appobject_path) apphome = realpath(self.apphome)