[Zope] cookies newbie addon

Jason Spisak 444@hiretechs.com
Tue, 16 May 2000 21:28:42 GMT


Coleman, Bryan writes:

> 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' >

Try <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 )
> 
All my best,

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.