From 6e35dcf612727f24abe6ab8f719874a138aef4a0 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 14 Nov 2011 20:45:59 +0100 Subject: Fix PluginConfig.set --- src/plugin.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.3