summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-15 23:26:24 +0100
committermathieui <mathieui@mathieui.net>2011-11-16 09:44:07 +0100
commitf40f5cb6c21e69abe6693d7cd22ec934d9177610 (patch)
tree01c164185397a273301918e7ea390acce20f4460 /src
parentc5b15c8119c37343e1b546ae96b11959dd2cd394 (diff)
downloadpoezio-f40f5cb6c21e69abe6693d7cd22ec934d9177610.tar.gz
poezio-f40f5cb6c21e69abe6693d7cd22ec934d9177610.tar.bz2
poezio-f40f5cb6c21e69abe6693d7cd22ec934d9177610.tar.xz
poezio-f40f5cb6c21e69abe6693d7cd22ec934d9177610.zip
Add a wrapper for RawConfigParser.options() in PluginConfig
Diffstat (limited to 'src')
-rw-r--r--src/plugin.py7
1 files changed, 7 insertions, 0 deletions
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: