Lines Matching refs:main_section
143 def validate_config(config, main_section): argument
144 if not config.has_section(main_section):
145 die("No [%s] section found." % main_section)
148 level=getattr(logging, config.get(main_section, 'log.level')),
149 filename=config.get(main_section, 'log.file'),
163 if not config.has_option(main_section, 'targets'):
164 die("No targets= item in [%s] found." % main_section)
166 targets = aslist(config.get(main_section, 'targets'))
170 die("Empty targets= item in [%s]." % main_section)
218 def fix_logging_path(config, main_section): argument
223 log_file = config.get(main_section, 'log.file')
231 def load_config(main_section, interactive=False): argument
236 config.data = BugwarriorData(get_data_path(config, main_section))
237 config.set(main_section, 'log.file', fix_logging_path(config, main_section))
238 validate_config(config, main_section)
242 def get_taskrc_path(conf, main_section): argument
244 if conf.has_option(main_section, 'taskrc'):
245 path = conf.get(main_section, 'taskrc')
251 def get_data_path(config, main_section): argument
252 taskrc = get_taskrc_path(config, main_section)