summaryrefslogtreecommitdiffstats
path: root/module/HookManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-10 21:23:46 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-10 21:23:46 +0200
commit60ae0ee3dce4715621b9964c91ad96e08e123204 (patch)
tree251aeb85742a32a8f3711879e4071a66e59bdc26 /module/HookManager.py
parentfixes netload free (diff)
downloadpyload-60ae0ee3dce4715621b9964c91ad96e08e123204.tar.xz
rewritten cli, closed #275, #304
Diffstat (limited to 'module/HookManager.py')
-rw-r--r--module/HookManager.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index c3da485a9..1138a4c29 100644
--- a/module/HookManager.py
+++ b/module/HookManager.py
@@ -62,18 +62,16 @@ class HookManager:
def addRPC(self, plugin, func, doc):
plugin = plugin.rpartition(".")[2]
- doc = doc.strip()
+ doc = doc.strip() if doc else ""
if self.methods.has_key(plugin):
self.methods[plugin][func] = doc
else:
self.methods[plugin] = {func: doc}
- print self.methods
-
def callRPC(self, plugin, func, args, parse):
if not args: args = tuple()
- if parse is not False:
+ if parse:
args = tuple([literal_eval(x) for x in args])
plugin = self.pluginMap[plugin]