aboutsummaryrefslogtreecommitdiffstats
path: root/mako/runtime.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-03-05 01:37:41 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2010-03-05 01:37:41 +0000
commit524bdae950f36d540b18ee5ad7910fadf45e30d1 (patch)
tree216ce0a596a8aa7c12ea1bc523370b9bc5cbdedb /mako/runtime.py
parentafb6caa9df90a8f952dd8fb5da4c7cbd8ce40dc3 (diff)
downloadexternal_python_mako-524bdae950f36d540b18ee5ad7910fadf45e30d1.tar.gz
external_python_mako-524bdae950f36d540b18ee5ad7910fadf45e30d1.tar.bz2
external_python_mako-524bdae950f36d540b18ee5ad7910fadf45e30d1.zip
- RichTraceback(), html_error_template().render(),
text_error_template().render() now accept "error" and "traceback" as optional arguments, and these are now actually used. [ticket:122]
Diffstat (limited to 'mako/runtime.py')
-rw-r--r--mako/runtime.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mako/runtime.py b/mako/runtime.py
index 95828b4..19d79de 100644
--- a/mako/runtime.py
+++ b/mako/runtime.py
@@ -430,6 +430,9 @@ def _render_error(template, context, error):
if context._outputting_as_unicode:
context._buffer_stack[:] = [util.FastEncodingBuffer(unicode=True)]
else:
- context._buffer_stack[:] = [util.FastEncodingBuffer(error_template.output_encoding, error_template.encoding_errors)]
+ context._buffer_stack[:] = [util.FastEncodingBuffer(
+ error_template.output_encoding,
+ error_template.encoding_errors)]
+
context._with_template = error_template
error_template.render_context(context, error=error)