[Zope3-checkins] CVS: Zope3/src/zope/publisher - base.py:1.17
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sat Mar 20 11:27:16 EST 2004
Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv11255/src/zope/publisher
Modified Files:
base.py
Log Message:
Added _request attribute to response objects.
=== Zope3/src/zope/publisher/base.py 1.16 => 1.17 ===
--- Zope3/src/zope/publisher/base.py:1.16 Sat Mar 20 08:38:15 2004
+++ Zope3/src/zope/publisher/base.py Sat Mar 20 11:27:15 2004
@@ -39,6 +39,7 @@
__slots__ = (
'_body', # The response body
'_outstream', # The output stream
+ '_request', # The associated request (if any)
)
implements(IResponse)
@@ -195,6 +196,8 @@
self._response = self._createResponse(outstream)
else:
self._response = response
+ self._response._request = self
+
self._body_instream = body_instream
self._held = ()
self._user = None
More information about the Zope3-Checkins
mailing list