Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
683d6ce9
Commit
683d6ce9
authored
Sep 04, 2016
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move httpexceptions middleware into ZPublisher.
parent
cea2d056
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
setup.py
setup.py
+1
-1
src/Testing/ZopeTestCase/functional.py
src/Testing/ZopeTestCase/functional.py
+1
-1
src/Testing/ZopeTestCase/zopedoctest/functional.py
src/Testing/ZopeTestCase/zopedoctest/functional.py
+1
-1
src/ZPublisher/WSGIPublisher.py
src/ZPublisher/WSGIPublisher.py
+3
-4
src/ZPublisher/httpexceptions.py
src/ZPublisher/httpexceptions.py
+0
-0
No files found.
setup.py
View file @
683d6ce9
...
...
@@ -111,7 +111,7 @@ setup(
'main=Zope2.Startup.run:make_wsgi_app'
,
],
'paste.filter_app_factory'
:
[
'httpexceptions=Z
ope2.Startup
.httpexceptions:main'
,
'httpexceptions=Z
Publisher
.httpexceptions:main'
,
],
'console_scripts'
:
[
'addzope2user=Zope2.utilities.adduser:main'
,
...
...
src/Testing/ZopeTestCase/functional.py
View file @
683d6ce9
...
...
@@ -24,7 +24,7 @@ from zope.interface import implements
from
Testing.ZopeTestCase
import
interfaces
from
Testing.ZopeTestCase
import
sandbox
from
Z
ope2.Startup
.httpexceptions
import
HTTPExceptionHandler
from
Z
Publisher
.httpexceptions
import
HTTPExceptionHandler
def
savestate
(
func
):
...
...
src/Testing/ZopeTestCase/zopedoctest/functional.py
View file @
683d6ce9
...
...
@@ -33,7 +33,7 @@ from Testing.ZopeTestCase import standard_permissions
from
Testing.ZopeTestCase.sandbox
import
AppZapper
from
Testing.ZopeTestCase.functional
import
ResponseWrapper
from
Testing.ZopeTestCase.functional
import
savestate
from
Z
ope2.Startup
.httpexceptions
import
HTTPExceptionHandler
from
Z
Publisher
.httpexceptions
import
HTTPExceptionHandler
if
sys
.
version_info
>=
(
3
,
):
basestring
=
str
...
...
src/ZPublisher/WSGIPublisher.py
View file @
683d6ce9
...
...
@@ -292,10 +292,9 @@ def publish_module(environ, start_response,
status
,
headers
=
response
.
finalize
()
start_response
(
status
,
headers
)
body
=
response
.
body
if
(
isinstance
(
body
,
IOBase
)
or
IUnboundStreamIterator
.
providedBy
(
body
)):
result
=
body
if
(
isinstance
(
response
.
body
,
IOBase
)
or
IUnboundStreamIterator
.
providedBy
(
response
.
body
)):
result
=
response
.
body
else
:
# If somebody used response.write, that data will be in the
# stdout StringIO, so we put that before the body.
...
...
src/Z
ope2/Startup
/httpexceptions.py
→
src/Z
Publisher
/httpexceptions.py
View file @
683d6ce9
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment