summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-14 20:45:59 +0100
committermathieui <mathieui@mathieui.net>2011-11-14 20:45:59 +0100
commit6e35dcf612727f24abe6ab8f719874a138aef4a0 (patch)
tree7c8a9821818dfe4fd944444b2bc3214510ee2f5a
parente4634b9095bd9628396407b3c9fa3a77b3acbe00 (diff)
downloadpoezio-6e35dcf612727f24abe6ab8f719874a138aef4a0.tar.gz
poezio-6e35dcf612727f24abe6ab8f719874a138aef4a0.tar.bz2
poezio-6e35dcf612727f24abe6ab8f719874a138aef4a0.tar.xz
poezio-6e35dcf612727f24abe6ab8f719874a138aef4a0.zip
Fix PluginConfig.set
-rw-r--r--src/plugin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugin.py b/src/plugin.py
index 137f704f..7d1aeb4b 100644
--- a/src/plugin.py
+++ b/src/plugin.py
@@ -16,6 +16,11 @@ class PluginConfig(config.Config):
section = self.module_name
return config.Config.get(self, option, default, section)
+ def set(self, option, default, section=None):
+ if not section:
+ section = self.module_name
+ return config.Config.set(self, option, default, section)
+
def read(self):
"""Read the config file"""
RawConfigParser.read(self, self.file_name)