[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication - ZopePublication.py:1.1.2.28.2.2
Jim Fulton
jim@zope.com
Wed, 20 Mar 2002 18:43:01 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication
In directory cvs.zope.org:/tmp/cvs-serv21411/Zope/App/ZopePublication
Modified Files:
Tag: Zope3-publisher-refactor-branch
ZopePublication.py
Log Message:
Began significant refactoring of publication framework.
- Added accessor functions, getResponse and getPublication.
- Moved some methods between existing interfaces as seem best, and
added new new interfaces.
- Getting rid of payloads.
=== Zope3/lib/python/Zope/App/ZopePublication/ZopePublication.py 1.1.2.28.2.1 => 1.1.2.28.2.2 ===
id = sm.getPrincipal()
prin_reg.unauthorized(id, request) # May issue challenge
- request.response.handleException(exc_info)
+ request.getResponse().handleException(exc_info)
return
# Look for a component to handle the exception.
@@ -143,7 +143,8 @@
raise Retry
# Let the response handle it as best it can.
- response = request.response
+ # XXX Is this what we want in the long term?
+ response = request.getResponse()
response.handleException(exc_info)
return
finally: