summaryrefslogtreecommitdiff
path: root/paste/evalexception
diff options
context:
space:
mode:
authorpjenvey <devnull@localhost>2006-12-22 00:55:25 +0000
committerpjenvey <devnull@localhost>2006-12-22 00:55:25 +0000
commit9057500bef6e97ec6e0c674fba33e86d259cfebc (patch)
treee30df351f100dd260a1d0c9b56db1d919dbd7a72 /paste/evalexception
parent63efb333ce97d54cc7e1d2328ab2bc69eedb7f0e (diff)
downloadpaste-9057500bef6e97ec6e0c674fba33e86d259cfebc.tar.gz
renamed restorer evalcontext_begin/end in_evalcontext to restoration_begin/end in_restoration
Diffstat (limited to 'paste/evalexception')
-rw-r--r--paste/evalexception/middleware.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py
index 97bade5..c85507c 100644
--- a/paste/evalexception/middleware.py
+++ b/paste/evalexception/middleware.py
@@ -257,9 +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)
+ registry.restorer.restoration_begin(debug_info.counter)
local_vars = make_table(vars)
- registry.restorer.evalcontext_end()
+ registry.restorer.restoration_end()
else:
local_vars = 'No local vars'
return input_form(tbid, debug_info) + local_vars
@@ -276,9 +276,9 @@ class EvalException(object):
vars = frame.tb_frame.f_locals
glob_vars = frame.tb_frame.f_globals
context = evalcontext.EvalContext(vars, glob_vars)
- registry.restorer.evalcontext_begin(debug_info.counter)
+ registry.restorer.restoration_begin(debug_info.counter)
output = context.exec_expr(input)
- registry.restorer.evalcontext_end()
+ registry.restorer.restoration_end()
input_html = formatter.str2html(input)
return ('<code style="color: #060">&gt;&gt;&gt;</code> '
'<code>%s</code><br>\n%s'