diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-17 21:34:49 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-17 21:34:49 +0200 |
commit | 15abc2d1c53190891a03155e24f5cd0d7cac8ff7 (patch) | |
tree | 541524afc9bfb6c365d5aa47372808fe793c4cd7 /module/plugins/Plugin.py | |
parent | pyLoad 0.4 (diff) | |
download | pyload-15abc2d1c53190891a03155e24f5cd0d7cac8ff7.tar.xz |
new config getter+setter in plugin
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r-- | module/plugins/Plugin.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index ee823329c..210b1b7ff 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -153,7 +153,15 @@ class Plugin(object): """ gets a config value """ return self.config.getPlugin(self.__name__, option) - + def setConfig(self, option, value): + """ sets a config value """ + self.setConf(option, value) + + def getConfig(self, option): + """ gets a config value """ + return self.getConf(option) + + def setWait(self, seconds, reconnect=False): """ set the wait time to specified seconds """ if reconnect: |