From f40f5cb6c21e69abe6693d7cd22ec934d9177610 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 15 Nov 2011 23:26:24 +0100 Subject: Add a wrapper for RawConfigParser.options() in PluginConfig --- src/plugin.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/plugin.py b/src/plugin.py index 7d1aeb4b..f35bdab1 100644 --- a/src/plugin.py +++ b/src/plugin.py @@ -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: -- cgit v1.2.3