[Zope] Re: reading a cookie from another PATH??

Trevor Toenjes zope@toenjes.com
Thu, 6 Sep 2001 21:39:54 -0400


> This would probably make it work:
>
> ###dtml-method - setGUID
> <dtml-call "REQUEST.set('ts', ZopeTime())">
> <dtml-call "REQUEST.set('uid_global',_.str(_.int(ts)))">
> <dtml-call "REQUEST.set('GUID', uid_global, expires='Wed, 19 Feb 2020
> 14:28:00 GMT',domain='.bar.com', path='/')">
>>> <dtml-call "RESPONSE.setCookie(REQUEST['GUID'])">
Chris,
this is the error I get...
Error Type: TypeError
Error Value: setCookie() takes exactly 3 arguments (2 given)
So I used the syntax below and get the same error that GUID doe snot exist?
Is this an acqisition/namespace thing?

    Is ...

<dtml-call "RESPONSE.setCookie(REQUEST['GUID'],uid_global, expires='Wed, 19
Feb 2020
14:28:00 GMT',domain='.bar.com', path='/')">

            the same thing as ...

<dtml-call "REQUEST.set('GUID', uid_global, expires='Wed, 19 Feb 2020
14:28:00 GMT',domain='.bar.com', path='/')">

Thanks,
-Trevor