From 33e3528cd9d758bd301ecabbb4b2d7bd43334881 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 21 Mar 2008 19:12:14 +0100 Subject: Make proxy object available to hook functions Hook functions now get the proxy object as first argument to be able to use RPC via the proxy. Signed-off-by: martin f. krafft --- plugins/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/proxy.py') diff --git a/plugins/proxy.py b/plugins/proxy.py index 36facecc5..6a7847fbe 100644 --- a/plugins/proxy.py +++ b/plugins/proxy.py @@ -168,7 +168,7 @@ class IkiWikiProcedureProxy(object): def hook_proxy(*args): # curpage = args[0] # kwargs = dict([args[i:i+2] for i in xrange(1, len(args), 2)]) - ret = function(*args) + ret = function(self, *args) self._debug_fn("%s hook `%s' returned: [%s]" % (type, name, ret)) if ret == IkiWikiProcedureProxy._IKIWIKI_NIL_SENTINEL: raise IkiWikiProcedureProxy.InvalidReturnValue, \ -- cgit v1.2.3