First off, the on-line documentation description of this method is 'Append a value to a cookie'. Second, it breaks if you are in fact adding a second value to a header that already exists. Either: <dtml-call "RESPONSE.setHeader('x-i-made-this','1013')"> <dtml-call "RESPONSE.appendHeader('x-i-made-this','1121')"> or: <dtml-call "RESPONSE.appendHeader('x-i-made-this','1013')"> <dtml-call "RESPONSE.appendHeader('x-i-made-this','1121')"> causes an error because of what looks like a typo. /lib/python/ZPublisher/HTTPResponse.py(line 391) reads: h=self.header[name] but should be: h=self.headers[name] Chris
First off, the on-line documentation description of this method is 'Append a value to a cookie'.
Second, it breaks if you are in fact adding a second value to a header that already exists.
Thanks - I've checked in the fix for 2.6 and on the 2.5 branch. Brian Lloyd brian@zope.com V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com
Glad to help. The error in the documentation string seems to have propagated to other locations. It appears in /lib/python/Products/OFSP/Response.py(line 130) and in the Zope Book <http://www.zope.org/Documentation/ZopeBook/AppendixB.stx>. Chris On Wed, 12 Jun 2002, Brian Lloyd wrote:
First off, the on-line documentation description of this method is 'Append a value to a cookie'.
Second, it breaks if you are in fact adding a second value to a header that already exists.
Thanks - I've checked in the fix for 2.6 and on the 2.5 branch.
Glad to help.
The error in the documentation string seems to have propagated to other locations. It appears in /lib/python/Products/OFSP/Response.py(line 130) and in the Zope Book <http://www.zope.org/Documentation/ZopeBook/AppendixB.stx>.
Ok - I've fixed the help system .py file and added a comment to the book site so that this should get fixed for the next rev. Thanks! Brian Lloyd brian@zope.com V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com
participants (2)
-
Brian Lloyd -
Chris Gray