Add a wrapper for RawConfigParser.options() in PluginConfig

This commit is contained in:
mathieui 2011-11-15 23:26:24 +01:00
parent c5b15c8119
commit f40f5cb6c2

View file

@ -27,6 +27,13 @@ class PluginConfig(config.Config):
if not self.has_section(self.module_name):
self.add_section(self.module_name)
def options(self, section=None):
if not section:
section = self.module_name
if not self.has_section(section):
self.add_section(section)
return config.Config.options(self, section)
def write(self):
"""Write the config to the disk"""
try: