X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/259d6e67a1e30849d526a751f847fa0649d4f81f..f91d79f469956c423373c8747c92218c668f0ba8:/plugins/pythondemo?ds=sidebyside diff --git a/plugins/pythondemo b/plugins/pythondemo index 8ad3d5fb9..911f4d7d9 100755 --- a/plugins/pythondemo +++ b/plugins/pythondemo @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- # # pythondemo — demo Python ikiwiki plugin @@ -20,7 +20,7 @@ def debug(s): sys.stderr.write(__name__ + ':DEBUG:%s\n' % s) sys.stderr.flush() -proxy = IkiWikiProcedureProxy(__name__, debug_fn=debug) +proxy = IkiWikiProcedureProxy(__name__, debug_fn=None) def _arglist_to_dict(args): if len(args) % 2 != 0: @@ -148,10 +148,6 @@ def scan_demo(proxy, *args): links = proxy.getvar('links', kwargs['page']) debug("links for page `%s' are: %s" % (kwargs['page'], links)) proxy.setvar('links', kwargs['page'], links) - # TODO: this yields "Can't use string ("1") as an ARRAY ref while "strict - # refs" in use at /home/madduck/code/ikiwiki/IkiWiki/Render.pm line 17, - # line 476." - raise NotImplementedError proxy.hook('scan', scan_demo) def htmlize_demo(proxy, *args):