summaryrefslogtreecommitdiff
path: root/paste/evalexception
diff options
context:
space:
mode:
authorbbangert <devnull@localhost>2005-12-13 23:24:11 +0000
committerbbangert <devnull@localhost>2005-12-13 23:24:11 +0000
commitf390c28caeb9e245cd4fc4db0466534f42f18717 (patch)
tree392027590c03d1ea5ddd5c9db292405e62e3a529 /paste/evalexception
parent7c0990495ffbf7765b5b8130012b8d27d1c56d34 (diff)
downloadpaste-f390c28caeb9e245cd4fc4db0466534f42f18717.tar.gz
Using new paste.request lib
Diffstat (limited to 'paste/evalexception')
-rw-r--r--paste/evalexception/middleware.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py
index c6c843f..aeaa7f0 100644
--- a/paste/evalexception/middleware.py
+++ b/paste/evalexception/middleware.py
@@ -28,6 +28,7 @@ from paste.exceptions import errormiddleware, formatter, collector
from paste import wsgilib
from paste import urlparser
from paste import httpexceptions
+from paste import request
import evalcontext
limit = 200
@@ -160,8 +161,8 @@ class EvalException(object):
return self.respond(environ, start_response)
def debug(self, environ, start_response):
- assert wsgilib.path_info_pop(environ) == '_debug'
- next_part = wsgilib.path_info_pop(environ)
+ assert request.path_info_pop(environ) == '_debug'
+ next_part = request.path_info_pop(environ)
method = getattr(self, next_part, None)
if not method:
exc = httpexceptions.HTTPNotFound(
@@ -401,7 +402,7 @@ def format_eval_html(exc_data, base_path, counter):
""" % (short_er, long_er)
def make_repost_button(environ):
- url = wsgilib.construct_url(environ)
+ url = request.construct_url(environ)
if environ['REQUEST_METHOD'] == 'GET':
return ('<button onclick="window.location.href=%r">'
'Re-GET Page</button><br>' % url)