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
41594f6d
Commit
41594f6d
authored
Oct 09, 2012
by
Malthe Borch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure WSGIPublisher also starts and ends an interaction (analogous to the ZServer publisher).
parent
8ef94500
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
doc/CHANGES.rst
doc/CHANGES.rst
+5
-0
src/ZPublisher/WSGIPublisher.py
src/ZPublisher/WSGIPublisher.py
+4
-0
No files found.
doc/CHANGES.rst
View file @
41594f6d
...
...
@@ -11,6 +11,11 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
++++++++++
- Ensure that the ``WSGIPublisher`` begins and ends an *interaction*
at the request/response barrier. This is required for instance for
the ``checkPermission`` call to function without an explicit
``interaction`` parameter.
- Ensure that ObjectManager's ``get`` and ``__getitem__`` methods return only
"items" (no attributes / methods from the class or from acquisition).
Thanks to Richard Mitchell at Netsight for the report.
...
...
src/ZPublisher/WSGIPublisher.py
View file @
41594f6d
...
...
@@ -19,6 +19,7 @@ import transaction
from
zExceptions
import
Redirect
from
zExceptions
import
Unauthorized
from
zope.event
import
notify
from
zope.security.management
import
newInteraction
,
endInteraction
from
zope.publisher.skinnable
import
setDefaultSkin
from
ZServer.medusa.http_date
import
build_http_date
...
...
@@ -165,6 +166,7 @@ def publish(request, module_name,
)
=
_get_module_info
(
module_name
)
notify
(
PubStart
(
request
))
newInteraction
()
request
.
processInputs
()
response
=
request
.
response
...
...
@@ -205,6 +207,8 @@ def publish(request, module_name,
if
result
is
not
response
:
response
.
setBody
(
result
)
endInteraction
()
notify
(
PubBeforeCommit
(
request
))
return
response
...
...
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