summaryrefslogtreecommitdiff
path: root/src/plugin.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-16 20:43:17 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-16 20:43:17 +0100
commit27e587118bac2ee70a076875f0fb9fddcc334c9b (patch)
treec4796d375df2779095eb33014d3b72e44babad54 /src/plugin.py
parentb2c84055dff5284a36d4bbb3311fd1532f530f56 (diff)
parentcae620e3efea2ed3428a8c3076cc8696431723e8 (diff)
downloadpoezio-27e587118bac2ee70a076875f0fb9fddcc334c9b.tar.gz
poezio-27e587118bac2ee70a076875f0fb9fddcc334c9b.tar.bz2
poezio-27e587118bac2ee70a076875f0fb9fddcc334c9b.tar.xz
poezio-27e587118bac2ee70a076875f0fb9fddcc334c9b.zip
Merge branch 'master' of http://git.louiz.org/poezio
Diffstat (limited to 'src/plugin.py')
-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: