[Zope] Help on syntax (please!)
Phil Harris
phil.harris@zope.co.uk
Mon, 13 Aug 2001 13:24:32 +0100
AUTHENTICTED_USER is an object not a string, you probably want:
<dtml-if "seq_item == AUTHENTICATED_USER.getUserName() ">
or
<dtml-if "seq_item == AUTHENTICATED_USER.getId() ">
hth
----- Original Message -----
From: "Giuseppe Bonelli" <g.bonelli@pn.itnet.it>
To: <zope@zope.org>
Sent: Monday, August 13, 2001 1:25 PM
Subject: [Zope] Help on syntax (please!)
> Hello,
>
> can someone please explain to me (a Zope newby) why this fragment
avaluates always to the KO branch ?
>
> <dtml-in get_valid_userids prefix="seq">
> <dtml-if "seq_item == AUTHENTICATED_USER ">
> OK
> <dtml-else>
> KO
> item: <dtml-var AUTHENTICATED_USER><br>
> user: <dtml-var seq_item><br>
> </dtml-if>
> </dtml-in>
>
> thanks in advance !!
>
> peppo
>
>
> _______________________________________________
> 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 )