[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Publisher/Browser - FileResource.py:1.3
Jim Fulton
jim@zope.com
Tue, 18 Jun 2002 10:47:35 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Publisher/Browser
In directory cvs.zope.org:/tmp/cvs-serv6342/lib/python/Zope/App/Publisher/Browser
Modified Files:
FileResource.py
Log Message:
Renamed request getResponse method to read-only response property.
=== Zope3/lib/python/Zope/App/Publisher/Browser/FileResource.py 1.2 => 1.3 ===
file = self.context
request = self.request
- response = request.getResponse()
+ response = request.response
# HTTP If-Modified-Since header handling. This is duplicated
# from OFS.Image.Image - it really should be consolidated
@@ -95,7 +95,7 @@
def HEAD(self):
file = self.context
- response = self.request.getResponse()
+ response = self.request.response
response.setHeader('Content-Type', file.content_type)
response.setHeader('Last-Modified', file.lmh)
return ''