summaryrefslogtreecommitdiff
path: root/paste/evalexception
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-11-14 16:13:21 +0000
committerianb <devnull@localhost>2005-11-14 16:13:21 +0000
commit86fcd4321908927e8ee2688ef71bd61f48aae07e (patch)
tree3529eb24069b8916fbcc0fd9d557e49b96d6c26d /paste/evalexception
parentf19bf035399089bcc1999560aaa07fcada0fd450 (diff)
downloadpaste-86fcd4321908927e8ee2688ef71bd61f48aae07e.tar.gz
Removed decorator syntax
Diffstat (limited to 'paste/evalexception')
-rw-r--r--paste/evalexception/middleware.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py
index 1c86334..f871138 100644
--- a/paste/evalexception/middleware.py
+++ b/paste/evalexception/middleware.py
@@ -182,8 +182,8 @@ class EvalException(object):
return app(environ, start_response)
mochikit.exposed = True
- @wsgiapp()
- @get_debug_info
+ #@wsgiapp()
+ #@get_debug_info
def show_frame(self, framecount, debug_info, **kw):
frame = debug_info.frames[int(framecount)]
vars = frame.tb_frame.f_locals
@@ -193,8 +193,10 @@ class EvalException(object):
local_vars = 'No local vars'
return input_form(framecount, debug_info) + local_vars
- @wsgiapp()
- @get_debug_info
+ show_frame = wsgiapp()(get_debug_info)(show_frame)
+
+ #@wsgiapp()
+ #@get_debug_info
def exec_input(self, framecount, debug_info, input, **kw):
if not input.strip():
return ''
@@ -209,6 +211,8 @@ class EvalException(object):
% (preserve_whitespace(input_html, quote=False),
preserve_whitespace(output)))
+ exec_input = wsgiapp()(get_debug_info)(exec_input)
+
def respond(self, environ, start_response):
base_path = environ['SCRIPT_NAME']
environ['paste.throw_errors'] = True