[migration] config.add_cubes should ensure site_cubicweb of new cubes is called
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Dec 2015 17:44:16 +0100
changeset 11000 dc9de651c328
parent 10999 adc46197b8c9
child 11001 37c5c9b3b3bf
[migration] config.add_cubes should ensure site_cubicweb of new cubes is called Related to #7569998
cwconfig.py
--- a/cwconfig.py	Wed Dec 09 17:44:16 2015 +0100
+++ b/cwconfig.py	Wed Dec 09 17:44:16 2015 +0100
@@ -1052,6 +1052,7 @@
         if not isinstance(cubes, list):
             cubes = list(cubes)
         self._cubes = self.reorder_cubes(list(self._cubes) + cubes)
+        self.load_site_cubicweb([self.cube_dir(cube) for cube in cubes])
 
     def main_config_file(self):
         """return instance's control configuration file"""