aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/proxy.py2
-rwxr-xr-xplugins/rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/proxy.py b/plugins/proxy.py
index 55c552ab2..582010c9a 100644
--- a/plugins/proxy.py
+++ b/plugins/proxy.py
@@ -151,7 +151,7 @@ class IkiWikiProcedureProxy(object):
self._xmlrpc_handler = _IkiWikiExtPluginXMLRPCHandler(self._debug_fn)
self._xmlrpc_handler.register_function(self._importme, name='import')
- def register_hook(self, type, function):
+ def hook(self, type, function):
self._hooks.append((type, function.__name__))
self._xmlrpc_handler.register_function(function)
diff --git a/plugins/rst b/plugins/rst
index febc14e97..9e0fb2548 100755
--- a/plugins/rst
+++ b/plugins/rst
@@ -34,5 +34,5 @@ def debug(s):
sys.stderr.flush()
proxy = IkiWikiProcedureProxy(__name__, debug_fn=None)
-proxy.register_hook('htmlize', rst2html)
+proxy.hook('htmlize', rst2html)
proxy.run()