[Zope] cookies newbie addon
Coleman, Bryan
bcoleman@questcon.com
Tue, 16 May 2000 15:40:01 -0400
I am trying to compaire the value of a variable in an if statment I have
tried the following methods and none seem to work.
<dtml-if expr="access = 'Expert' ">
<dtml-if access = 'Expert' >
And some others, None of which seems right. I can tell I am dancing around
the issue here.
> -----Original Message-----
> From: Chris Withers [SMTP:chrisw@nipltd.com]
> Sent: Tuesday, May 16, 2000 9:57 AM
> To: phd@phd.russ.ru
> Cc: Lorenzo Rondelli; zope@zope.org
> Subject: Re: [Zope] cookies
>
> Oleg Broytmann wrote:
> > It is implemented and called automagically :) You do not need to call
> it
> > - just test if the name exist: <dtml-if myCookie>...
>
> If you want to make sure you're getting the cookie:
> <dtml-if "REQUEST.cookies.has_key('myCookie')">
>
> and access via:
>
> <dtml-var "REQUEST.cookies.['myCookie']">
>
> untested, but should work unless I've been stupid ;-)
>
> cheers,
>
> Chris
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )