This is probably a silly question, but how does one read cookies from an
external method without passing REQUEST to the method?
The method should be callable both from dtml and from other external
I know I can do this:
cookie = REQUEST.get('some_cookie')
Can I get the same cookie without requiring boty my dtml methods and my
other scripts and external methods that call foo() to be able to pass
the REQUEST object?
I'd like other methods to be able to say this:
val = foo() # good
without requiring them to be able to do this:
val = foo(REQUEST) # bad
Likewise, I'd much rather say this:
<dtml-var foo> <!-- good -->
<dtml-var expr="foo(RESPONSE)"> <!-- bad -->
If I've just revealed myself to be tremendously ignorant of the right
way of doing all these things in Zope, great! Please enlighten me.
Thanks for any tips,
Jed Parsons Industrial Light + Magic (415) 746-2974
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -