jinja2.debugrenderer.render_traceback

Here are the examples of the python api jinja2.debugrenderer.render_traceback taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: GAE-Bulk-Mailer
License: View license
Source File: debug.py
    def render_as_html(self, full=False):
        """Return a unicode string with the traceback as rendered HTML."""
        from jinja2.debugrenderer import render_traceback
        return u'%s\n\n<!--\n%s\n-->' % (
            render_traceback(self, full=full),
            self.render_as_text().decode('utf-8', 'replace')
        )