summaryrefslogtreecommitdiff
path: root/django/core/handlers/modpython.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-02-18 23:41:17 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-02-18 23:41:17 +0000
commit2c443df341984b1fc8c6801e39129180588309a0 (patch)
treeeaa59668bdd82795c697ff14d06e737e23a8ebb7 /django/core/handlers/modpython.py
parent53ca15cd78cdcb881b31cc417f8709c10fafaadd (diff)
Fixed #894 -- Moved response middleware call to base.py so that exceptions in that middleware get processed by the standard exception handling. As a nice side effect, this cuts down on a bit of redundant code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/handlers/modpython.py')
-rw-r--r--django/core/handlers/modpython.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py
index eec35ff072..aed8e140ba 100644
--- a/django/core/handlers/modpython.py
+++ b/django/core/handlers/modpython.py
@@ -144,10 +144,6 @@ class ModPythonHandler(BaseHandler):
finally:
db.db.close()
- # Apply response middleware
- for middleware_method in self._response_middleware:
- response = middleware_method(request, response)
-
# Convert our custom HttpResponse object back into the mod_python req.
populate_apache_request(response, req)
return 0 # mod_python.apache.OK