cwctl.py
branchstable
changeset 9923 da09975300aa
parent 9704 43c9896d0e9f
child 9984 793377697c81
equal deleted inserted replaced
9922:fc02ba8654a7 9923:da09975300aa
   394             config.input_config('main', self.config.config_level)
   394             config.input_config('main', self.config.config_level)
   395         # configuration'specific stuff
   395         # configuration'specific stuff
   396         print
   396         print
   397         helper.bootstrap(cubes, self.config.automatic, self.config.config_level)
   397         helper.bootstrap(cubes, self.config.automatic, self.config.config_level)
   398         # input for cubes specific options
   398         # input for cubes specific options
   399         sections = set(sect.lower() for sect, opt, odict in config.all_options()
   399         if not self.config.automatic:
   400                        if 'type' in odict
   400             sections = set(sect.lower() for sect, opt, odict in config.all_options()
   401                        and odict.get('level') <= self.config.config_level)
   401                            if 'type' in odict
   402         for section in sections:
   402                            and odict.get('level') <= self.config.config_level)
   403             if section not in ('main', 'email', 'pyro', 'web'):
   403             for section in sections:
   404                 print '\n' + underline_title('%s options' % section)
   404                 if section not in ('main', 'email', 'pyro', 'web'):
   405                 config.input_config(section, self.config.config_level)
   405                     print '\n' + underline_title('%s options' % section)
       
   406                     config.input_config(section, self.config.config_level)
   406         # write down configuration
   407         # write down configuration
   407         config.save()
   408         config.save()
   408         self._handle_win32(config, appid)
   409         self._handle_win32(config, appid)
   409         print '-> generated config %s' % config.main_config_file()
   410         print '-> generated config %s' % config.main_config_file()
   410         # handle i18n files structure
   411         # handle i18n files structure