Re: HTML formatted traceback

2006-08-16 Thread Dan Eloff
I'll agree that mod_python 3.3 tracebacks are perhaps longer than they need to be given that I factored out various stuff into some functions so as to be able to reuse it across connection, handler and filter dispatch. I also like the idea of using colour to highlight important stuff. Thus, proba

Re: HTML formatted traceback

2006-08-16 Thread Graham Dumpleton
Dan Eloff wrote .. > I grew tired of scrolling down through the very long tracbacks to get > to the actual error, so I wrote a function that lets me skip > everything up to my handler function. While I was at it I figured I > may as well highlight the things I want to see to make the tracebacks > e

HTML formatted traceback

2006-08-16 Thread Dan Eloff
re.DOTALL | re.MULTILINE) def get_formatted_traceback(req): ''' Returns an html formatted traceback for the exception. ''' req.content_type = 'text/html' buf = ['http://www.w3.org/TR/html4/loose.dtd";>', '