refactor
authorsylvain.thenault@logilab.fr
Tue, 13 Jan 2009 17:58:42 +0100
changeset 396 76d593bd4221
parent 395 cce260264122
child 398 cc16ee7d2d86
refactor
devtools/devctl.py
--- a/devtools/devctl.py	Tue Jan 13 17:57:49 2009 +0100
+++ b/devtools/devctl.py	Tue Jan 13 17:58:42 2009 +0100
@@ -35,8 +35,11 @@
         if cube is None:
             self._cubes = ()
         else:
-            self._cubes = self.expand_cubes((cube,))
-        
+            self._cubes = self.expand_cubes(self.my_cubes(cube))
+
+    def my_cubes(self, cube):
+        return (cube,) + self.cube_dependencies(cube) + self.cube_recommends(cube)
+    
     @property
     def apphome(self):
         return None
@@ -52,12 +55,9 @@
     """configuration to use to generate cubicweb po files or to use as "library" configuration
     to filter out message ids from cubicweb and dependencies of a cube
     """
-    def __init__(self, cube=None):
-        super(DevDepConfiguration, self).__init__(cube)
-        if cube is None:
-            self._cubes = ()
-        else:
-            self._cubes = self.expand_cubes(self.cube_dependencies(cube))
+
+    def my_cubes(self, cube):
+        return self.cube_dependencies(cube) + self.cube_recommends(cube)
 
     def default_log_file(self):
         return None