Lines Matching refs:section
102 def _handle_no_value(self, section, key, default): argument
105 (key, section))
111 def get_section_values(self, section): argument
120 cfgparser.add_section(section)
121 for option, value in self.config.items(section):
122 cfgparser.set(section, option, value)
126 def get_config_value(self, section, key, type=str, argument
146 val = self.config.get(section, key)
148 return self._handle_no_value(section, key, default)
151 return self._handle_no_value(section, key, default)
153 return self._convert_value(key, section, val, type)
156 def get_config_value_regex(self, section, key_regex, type=str): argument
168 for option, value in self.config.items(section):
170 configs[option] = self._convert_value(option, section, value,
177 def get_config_value_with_fallback(self, section, key, fallback_key, argument
207 fallback_section = section
210 return self.get_config_value(section, key, type, **kwargs)
216 def override_config_value(self, section, key, new_value): argument
224 self.config.set(section, key, new_value)
249 for section in sections:
251 if not self.config.has_section(section):
252 self.config.add_section(section)
254 options = override_config.options(section)
256 val = override_config.get(section, option)
257 self.config.set(section, option, val)
290 def _convert_value(self, key, section, value, value_type): argument
324 (key, sval, section, value_type))