[Checkins] [zopefoundation/Zope] 94dcb9: Restore a `_unauthorized` hook on the response obj...
GitHub
noreply at github.com
Fri May 5 17:25:33 CEST 2017
Branch: refs/heads/master
Home: https://github.com/zopefoundation/Zope
Commit: 94dcb9664f9d801664e4e546dab6d23ec693dcbb
https://github.com/zopefoundation/Zope/commit/94dcb9664f9d801664e4e546dab6d23ec693dcbb
Author: Hanno Schlichting <hanno at hannosch.eu>
Date: 2017-05-05 (Fri, 05 May 2017)
Changed paths:
M CHANGES.rst
M src/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt
M src/ZPublisher/HTTPResponse.py
M src/ZPublisher/WSGIPublisher.py
M src/ZPublisher/tests/test_WSGIPublisher.py
Log Message:
-----------
Restore a `_unauthorized` hook on the response object. (#112)
* Restore a `_unauthorized` hook on the response object.
This is used as a hook by PluggableAuthService.
* Also call `_unauthorized` if application code raised Unauthorized.
Rather than raising an Unauthorized HTTP exception, we have to trust
and use the possibly modified response instance. This means you can
not register exception views for Unauthorized, same as in Zope 2.13.
* Add changelog entry.
More information about the checkins
mailing list