From f8b737b3f2dc97e2bd3b40b55bfcd35459ecf950 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 20 Jul 2011 22:03:03 +0200 Subject: online check for container --- module/HookManager.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'module/HookManager.py') 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: -- cgit v1.2.3