-#!/usr/bin/python
+#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# pythondemo — demo Python ikiwiki plugin
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:
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):