[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser - FileView.py:1.3
Jim Fulton
jim@zope.com
Tue, 18 Jun 2002 10:47:33 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv6342/lib/python/Zope/App/OFS/Content/File/Views/Browser
Modified Files:
FileView.py
Log Message:
Renamed request getResponse method to read-only response property.
=== Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser/FileView.py 1.2 => 1.3 ===
request = self.request
if request is not None:
- request.getResponse().setHeader('Content-Type',
+ request.response.setHeader('Content-Type',
self.context.getContentType())
- request.getResponse().setHeader('Content-Length',
+ request.response.setHeader('Content-Length',
self.context.getSize())
return self.context.getData()