path: root/pykolab/plugins/
diff options
Diffstat (limited to 'pykolab/plugins/')
1 files changed, 4 insertions, 1 deletions
diff --git a/pykolab/plugins/ b/pykolab/plugins/
index 6bfd627..2dff5b8 100644
--- a/pykolab/plugins/
+++ b/pykolab/plugins/
@@ -211,6 +211,8 @@ class KolabPlugins(object):
def exec_hook(self, hook, plugins=[], kw={}, args=()):
"""Execute a hook"""
+ retval = None
if len(plugins) < 1:
plugins = self.plugins.keys()
@@ -225,13 +227,14 @@ class KolabPlugins(object):
if hasattr(getattr(self,plugin),hook):
log.debug(_("Executing hook %s for plugin %s") %(hook,plugin), level=8)
+ print "retval = self.%s.%s(%r, %r)" %(plugin,hook, args, kw)
exec("retval = self.%s.%s(*args, **kw)" %(plugin,hook))
except TypeError, e:
log.error(_("Cannot execute hook %s for plugin %s: %s") %(hook,plugin,e))
except AttributeError, e:
log.error(_("Cannot execute hook %s for plugin %s: %s") %(hook,plugin,e))
- return retval
+ return retval
def return_true_boolean_from_plugins(self, bool, plugins=[]):
"""Given the name of a boolean, walks all specified plugins, or all available plugins, and returns True if a plugin has it set to true"""