[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/HTTP - HTTPResponse.py:1.1.2.11
Jim Fulton
jim@zope.com
Sun, 3 Feb 2002 18:50:37 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/HTTP
In directory cvs.zope.org:/tmp/cvs-serv15722
Modified Files:
Tag: Zope-3x-branch
HTTPResponse.py
Log Message:
Kapil Thangavelu
Removed setBase.
Uh, Houston, I think we have a problem. Why does BaseResponse have
set/getBase? Because BaseRequest calls setBase, but why the heck
should BaseRequest care about bases. All your bases are belong to
browsers. I (Jim) need to add an XXX comment in BaseRequest.
=== Zope3/lib/python/Zope/Publisher/HTTP/HTTPResponse.py 1.1.2.10 => 1.1.2.11 ===
self.setHeader('content-length', blen)
- def setBase(self,base):
- 'Sets the base URL for the returned document.'
- if base[-1:] != '/':
- base=base+'/'
- self.base=base
-
def appendToCookie(self, name, value):
'''
Creates an HTTP header that sets a cookie on cookie-enabled