[Zope] cookies newbie addon

Chris McDonough chrism@digicool.com
Tue, 16 May 2000 16:14:02 -0400


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

> -----Original Message-----
> From: Coleman, Bryan [mailto:bcoleman@questcon.com]
> Sent: Tuesday, May 16, 2000 3:40 PM
> To: 'zope@zope.org'
> 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 )
>