cubicweb/cwctl.py
changeset 11284 d4293b14c664
parent 11279 e4f11ef1face
child 11767 432f87a63057
equal deleted inserted replaced
11283:46dda5238bc2 11284:d4293b14c664
   380         helper.bootstrap(cubes, self.config.automatic, self.config.config_level)
   380         helper.bootstrap(cubes, self.config.automatic, self.config.config_level)
   381         # input for cubes specific options
   381         # input for cubes specific options
   382         if not self.config.automatic:
   382         if not self.config.automatic:
   383             sections = set(sect.lower() for sect, opt, odict in config.all_options()
   383             sections = set(sect.lower() for sect, opt, odict in config.all_options()
   384                            if 'type' in odict
   384                            if 'type' in odict
   385                            and odict.get('level') <= self.config.config_level)
   385                            and odict.get('level', 0) <= self.config.config_level)
   386             for section in sections:
   386             for section in sections:
   387                 if section not in ('main', 'email', 'web'):
   387                 if section not in ('main', 'email', 'web'):
   388                     print('\n' + underline_title('%s options' % section))
   388                     print('\n' + underline_title('%s options' % section))
   389                     config.input_config(section, self.config.config_level)
   389                     config.input_config(section, self.config.config_level)
   390         # write down configuration
   390         # write down configuration