[Zope] Question about setCookie()
Oliver Bleutgen
myzope@gmx.net
Tue, 25 Feb 2003 21:29:01 +0100
Jean-Francois.Doyon@CCRS.NRCan.gc.ca wrote:
> Hello,
>
> I just started using setCookie() for the first time, and noticed it likes to
> put all my values in double quotes!
Annoying, isn't it?
>
> I went to quickly read RFC2109, and I don't see anything suggesting values
> should be quoted at all.
Yup
> This is a problem for me as it breaks the design specs of a distributed
> application framework I'm working with that sets cookies without the double
> quotes.
>
> Any way around this? Can I safely alter the HTTPResponse.py code to remove
> them?
Just set the cookies with Response.setHeader, or write an python script
called setCookie which does the right thing, and put it in your zope root.
cheers,
oliver