rename register_hook to just hook, for consistency with the perl
parent
06fb2357e4
commit
646392f367
|
@ -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)
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue