[Zope] cookies newbie addon

Phil Harris phil.harris@zope.co.uk
Tue, 16 May 2000 22:54:06 +0100


 <dtml-if "access ==  'Expert' ">

----- Original Message -----
From: "Coleman, Bryan" <bcoleman@questcon.com>
To: <zope@zope.org>
Sent: 16 May 2000 20:40
Subject: RE: [Zope] cookies newbie addon


> 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 )
>
> _______________________________________________
> 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 )