rename register_hook to just hook, for consistency with the perl
authorJoey Hess <joey@kodama.kitenet.net>
Sat, 15 Mar 2008 19:42:52 +0000 (15:42 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sat, 15 Mar 2008 19:42:52 +0000 (15:42 -0400)
plugins/proxy.py
plugins/rst

index 55c552ab22e30aab59c2a10c3192bd9a30e7ebea..582010c9af550c87d7f045128efd49e62faacd26 100644 (file)
@@ -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)
 
index febc14e97186634a9603938657a524f7293af3f9..9e0fb2548866fb7f1b9c18d7e0b2e2c208dc20c6 100755 (executable)
@@ -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()