[Zope] dtml-if problem
Phil Harris
phil.harris@zope.co.uk
Mon, 11 Jun 2001 09:29:41 +0100
Try changing it to:
<dtml-if expr="getId() == 'warez'">
hth
Phil
----- Original Message -----
From: "Tamas Amon" <sajt@amon.hu>
To: <zope@zope.org>
Sent: Monday, June 11, 2001 9:28 AM
Subject: [Zope] dtml-if problem
> Hello,
> I have a little problem, but I don't find the solution for it. Here is
> the code:
> -----
> <form name='ware'>
> <select name="warez" onChange="document.ware.submit()">
> <dtml-if warez>
> <dtml-in wares>
> <dtml-if expr="id == warez">
> <OPTION VALUE=<dtml-var id> DEFAULT><dtml-var sname>
> <dtml-else>
> <OPTION VALUE=<dtml-var id>><dtml-var sname>
> </dtml-if>
> </dtml-in>
> <dtml-else>
> <dtml-in wares>
> <OPTION VALUE=<dtml-var id>><dtml-var sname>
> </dtml-in>
> </dtml-if>
> </select>
> </form>
> -----
> But the
> <dtml-if expr="id == warez"> is never true. Why it is possible?
>
> Thanks for your help.
> --
> Amon Tamas
> sajt@amon.hu
>
> _______________________________________________
> 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 )