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 )
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.
<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 )
participants (3)
-
Coleman, Bryan -
Jason Spisak -
Phil Harris