when creating an instance, ask for cubes specific options properly (fix #607349) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 17 Feb 2010 13:12:35 +0100
branchstable
changeset 4610 7bf205b9a845
parent 4609 169ca2904322
child 4611 599189430c0e
when creating an instance, ask for cubes specific options properly (fix #607349)
cwctl.py
--- a/cwctl.py	Wed Feb 17 13:11:30 2010 +0100
+++ b/cwctl.py	Wed Feb 17 13:12:35 2010 +0100
@@ -303,6 +303,12 @@
         # configuration'specific stuff
         print
         helper.bootstrap(cubes, self.config.config_level)
+        # input for cubes specific options
+        for section in set(sect.lower() for sect, opt, optdict in config.all_options()
+                           if optdict.get('inputlevel') <= self.config.config_level):
+            if section not in ('main', 'email', 'pyro'):
+                print '\n' + underline_title('%s options' % section)
+                config.input_config(section, self.config.config_level)
         # write down configuration
         config.save()
         self._handle_win32(config, appid)