[Zope] Using cookies with Zope products.
Andrew Lahser
andrew@apl-software.com
29 Dec 1999 03:45:00 -0000
Anthony Baxter <anthony@interlink.com.au> said:
> >>> 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...
>
Ok. So does it follow that the UserDB product gets its namespace
dictionary from the validate method, and that User Folder products
are therefore different from other products? Or is there a method
that is passed the current namespace dictionary when a object
is rendered as DTML or called from DTML? Does the __call__ method
receive the current namespace in any way?
> for further reading, look at lib/python/TreeDisplay/TreeTag.py
>
Thats like reading brail in the dark, but I will give it another
shot.
Drew