[Zope] Using cookies with Zope products.

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Wed, 29 Dec 1999 14:35:12 +1100


>>> Andrew Lahser wrote
> I am trying to set and get a cookie from a Zope product. Do
> I need to pass in the REQUEST to get at the cookies and the
> response? If the answer is yes, then why does the tree tag
> not have to pass in the REQUEST?

The tree tag is a tag, not a product instance. It's 'render' 
method gets the current namespace dictionary when called, and
it looks up the value of 'REQUEST' and 'RESPONSE' from that.

tags behave differently to products...

for further reading, look at lib/python/TreeDisplay/TreeTag.py

Anthony