|
From: Glennie V. <gl...@gl...> - 2010-11-26 16:13:05
|
Hello, I'm in the process of (re)writing a moinmoin wiki syntax parser plugin for pybloxsom pyblosxom, as the existing one doesn't work with the current version. A working version of my code can downloaded from http://www.glennie.fr/dynamicdata/miscs/moinmoin.py. The rendering result can be viewed at http://pyblosxom.glennie.fr/. The raw entry file can be viewed at http://www.glennie.fr/dynamicdata/miscs/AdminWindowsLinux.txt and moinmoin format is at http://www.glennie.fr/AdministrationWindowsApartirDeLinux?action=rawAdminWindowsLinux.txt The raw moinmoin file is correctly rendrered under pyblosxom with just the entry title and "#parser moinmoin" added to it. The output can be used with any moinmoin theme with a little modification of and existing pyblosxom flavour. As the moinmoin uses some meta info starting with '#', in order to be used, the following patch should be applied to pyblosxom: ------------------- --- pyblosxom.py.ori 2010-11-26 11:39:25.000000000 +0100 +++ pyblosxom.py 2010-11-26 11:58:18.000000000 +0100 @@ -989,6 +989,7 @@ # call the preformat function args = {'parser': entry_data.get('parser', config.get('parser', 'plain')), 'story': lines, + 'filename': filename, 'request': request} entry_data["body"] = tools.run_callback( 'preformat', ----- As you can see, this is an one liner patch adding 'filename' to the args dict before calling before calling preformat hooks. Can you apply this patch to next release? Thanks -- http://www.glennie.fr The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. |