summaryrefslogtreecommitdiffstats
path: root/pykolab/plugins.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/plugins.py')
-rw-r--r--pykolab/plugins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/plugins.py b/pykolab/plugins.py
index 0c0c272..095c50c 100644
--- a/pykolab/plugins.py
+++ b/pykolab/plugins.py
@@ -179,7 +179,7 @@ class KolabPlugins:
return False
- def exec_hook(self, hook, plugins=[], args=()):
+ def exec_hook(self, hook, plugins=[], kw={}, args=()):
"""Execute a hook"""
if len(plugins) < 1:
@@ -195,7 +195,7 @@ class KolabPlugins:
if hasattr(getattr(self,plugin),hook):
try:
- exec("retval = self.%s.%s(args=%r)" % (plugin,hook,args))
+ exec("retval = self.%s.%s(kw=%r, args=%r)" % (plugin,hook,kw,args))
except TypeError, e:
print >> sys.stderr, _("Cannot execute hook %s for plugin %s: %s") % (hook,plugin,e)
except AttributeError, e: