diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-14 20:52:12 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-14 20:52:12 +0100 |
commit | 4e201be745521ace9701623d684dde316cb43af4 (patch) | |
tree | 555991eb637ef82e810960bc5956c010341650f2 /src/plugin.py | |
parent | f0f9f670b9084761023ba9c594b97a0ad37581ed (diff) | |
parent | 07d7189ab6eb7795ddfa4864ed2d00c34c64486c (diff) | |
download | poezio-4e201be745521ace9701623d684dde316cb43af4.tar.gz poezio-4e201be745521ace9701623d684dde316cb43af4.tar.bz2 poezio-4e201be745521ace9701623d684dde316cb43af4.tar.xz poezio-4e201be745521ace9701623d684dde316cb43af4.zip |
Merge branch 'master' of http://git.louiz.org/poezio
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) |