summaryrefslogtreecommitdiff
path: root/paste/evalexception
diff options
context:
space:
mode:
authorpjenvey <devnull@localhost>2006-12-04 23:06:02 +0000
committerpjenvey <devnull@localhost>2006-12-04 23:06:02 +0000
commitfe19c0f3f3eb330d92718305f8c78ec03db5705f (patch)
tree8ea5a659d2287ed3c69ede137cc64b6bf78b2ade /paste/evalexception
parent7f520d60b283ad0a64cb3a766c7b005dd79bc0ed (diff)
downloadpaste-fe19c0f3f3eb330d92718305f8c78ec03db5705f.tar.gz
enable the StackedObjectRestorer during show_frame so locals show up
correctly
Diffstat (limited to 'paste/evalexception')
-rw-r--r--paste/evalexception/middleware.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py
index c1afedc..97bade5 100644
--- a/paste/evalexception/middleware.py
+++ b/paste/evalexception/middleware.py
@@ -257,7 +257,9 @@ class EvalException(object):
frame = debug_info.frame(int(tbid))
vars = frame.tb_frame.f_locals
if vars:
+ registry.restorer.evalcontext_begin(debug_info.counter)
local_vars = make_table(vars)
+ registry.restorer.evalcontext_end()
else:
local_vars = 'No local vars'
return input_form(tbid, debug_info) + local_vars