summaryrefslogtreecommitdiffstats
path: root/module/HookManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-20 22:03:03 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-20 22:03:03 +0200
commitf8b737b3f2dc97e2bd3b40b55bfcd35459ecf950 (patch)
treef370a7965c1c2485465bf394aa5ef0bdd13d6591 /module/HookManager.py
parentMU fix (diff)
downloadpyload-f8b737b3f2dc97e2bd3b40b55bfcd35459ecf950.tar.xz
online check for container
Diffstat (limited to 'module/HookManager.py')
-rw-r--r--module/HookManager.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index c67acd34a..5876debe4 100644
--- a/module/HookManager.py
+++ b/module/HookManager.py
@@ -272,6 +272,14 @@ class HookManager:
return info
+ def getInfo(self, plugin):
+ info = {}
+ if plugin in self.pluginMap and self.pluginMap[plugin].info:
+ info = dict([(x, str(y) if type(y) != basestring else y)
+ for x, y in self.pluginMap[plugin].info.iteritems()])
+
+ return info
+
def addEvent(self, event, func):
"""Adds an event listener for event name"""
if event in self.events: