summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-17 21:35:26 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-17 21:35:26 +0200
commit9ad6ae80862e75b24d777200040430c784d58bd8 (patch)
tree09bd4093790f3fb5888cdcfd898be6fd763b690e
parentFileserveCom (diff)
parentnew config getter+setter in plugin (diff)
downloadpyload-9ad6ae80862e75b24d777200040430c784d58bd8.tar.xz
merge
-rw-r--r--module/plugins/Plugin.py10
-rwxr-xr-xpyLoadCore.py2
2 files changed, 10 insertions, 2 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:
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 1c21397e5..d39c919dc 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -20,7 +20,7 @@
@author: mkaay
@version: v0.4.0
"""
-CURRENT_VERSION = '0.4.0'
+CURRENT_VERSION = '0.4.1-dev'
from getopt import GetoptError
from getopt import getopt