]> sipb.mit.edu Git - ikiwiki.git/blobdiff - plugins/pythondemo
answer to clarification.
[ikiwiki.git] / plugins / pythondemo
index 8ad3d5fb9a708c5f537f8b5e5f25a41d5e8c7470..911f4d7d9fefd8a4dc2e151ad5d6a638db00bc83 100755 (executable)
@@ -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,
-    # <GEN1> line 476."
-    raise NotImplementedError
 proxy.hook('scan', scan_demo)
 
 def htmlize_demo(proxy, *args):