Description
The may be less a bug in MoinMoin and more a question about Python, but I hope you will indulge me:
I'm toying with a Textile parser, and I want to find a way to give more traceback information (in particular more line # information) when things go wrong. If you look at the attached traceback.html, you will see that when execution is in MoinMoin proper or in my parser (chris.py), then I get line number information. When it gets to the external PyTextile code, however, no line number information is available. It does tell me what function execution is in, and that's better than nothing, but I'd really like a particular line number
Steps to reproduce
install PyTextile (http://cheeseshop.python.org/pypi/textile)
install chris.py (chris.py) in the parser directory
- make a page using a "#format chris" at the top. The page can pretty much contain any markup you want.
- click to preview the page
I've tried installing both textile-2.0.11-py2.4.egg and textile-2.0.11.tar.gz
Example
Any wiki markup will work. I've been using something like "hello."
#format chris hello.
Details
Workaround
Discussion
I guess that you have to feed encoded strings to pytextile (if you have to give an encoding, unicode doesn't make sense).
I have no idea about the traceback problem, maybe ask the pytextile devs.
Is textile installed as egg? Maybe moin cgitb module does not support eggs.
In format, This will render better when the formatter is not text_html:
html = texttile.textile(args...) self.request.write(formatter.rawHTML(html))
Moin raw text is unicode - not utf-8. Thats probably the reason textile broke. If textile needs utf-8 input, encode raw to utf-8 before calling textile.
Plan
- Priority:
- Assigned to:
- Status: not a moin bug