aboutsummaryrefslogtreecommitdiff
path: root/plugins/proxy.py
diff options
context:
space:
mode:
authormartin f. krafft <madduck@madduck.net>2008-03-21 19:12:14 +0100
committerJoey Hess <joey@kodama.kitenet.net>2008-03-21 15:07:10 -0400
commit33e3528cd9d758bd301ecabbb4b2d7bd43334881 (patch)
tree3ba745e272f32ae3d4eb2c94e38914bdc3502662 /plugins/proxy.py
parent5184b8abfce9f2e6c899f8f00e0ac3341161a1b2 (diff)
downloadikiwiki-33e3528cd9d758bd301ecabbb4b2d7bd43334881.tar
ikiwiki-33e3528cd9d758bd301ecabbb4b2d7bd43334881.tar.gz
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 <madduck@madduck.net>
Diffstat (limited to 'plugins/proxy.py')
-rw-r--r--plugins/proxy.py2
1 files changed, 1 insertions, 1 deletions
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, \