[cwconfig] make appobjects_cubes_modnames() public
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Tue, 24 Jan 2017 14:09:13 +0100
changeset 11918 a88101bf9f87
parent 11916 f0bc9ca93e21
child 11919 3a6746dfc57f
[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.
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)