diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-14 20:45:59 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-14 20:45:59 +0100 |
commit | 6e35dcf612727f24abe6ab8f719874a138aef4a0 (patch) | |
tree | 7c8a9821818dfe4fd944444b2bc3214510ee2f5a /src/plugin.py | |
parent | e4634b9095bd9628396407b3c9fa3a77b3acbe00 (diff) | |
download | poezio-6e35dcf612727f24abe6ab8f719874a138aef4a0.tar.gz poezio-6e35dcf612727f24abe6ab8f719874a138aef4a0.tar.bz2 poezio-6e35dcf612727f24abe6ab8f719874a138aef4a0.tar.xz poezio-6e35dcf612727f24abe6ab8f719874a138aef4a0.zip |
Fix PluginConfig.set
Diffstat (limited to 'src/plugin.py')
-rw-r--r-- | src/plugin.py | 5 |
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) |