Moinmoin format plugin
Glennie Vignarajah <[email protected]> Fri, 26 Nov 2010 16:54:45 +0100
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Organization | Nephthys |
| Message-ID | <[email protected]> |
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.
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev