[Zope] string crisis....
Arnaud Lecat
lecat@hexanet.fr
Wed, 08 Sep 1999 17:01:09 +0200
Here is my full code for this. Putting id() instead of id doesn't work.
mydocid has been set in the header <dtml-call "REQUEST.set('mydocid',id)">
<dtml-in "navigate_filter('donav','yes','DTML Document')">
<TR>
<TD>*<dtml-var mydocid>*<dtml-var id">*</tD>
<dtml-if "mydocid==id">
<TD bgcolor="#DDDDDD" width="121">1.<B><A HREF="<dtml-var
absolute_url>" class="menusmalllink"><dtml-var title></A></B></TD>
<dtml-else>
<TD bgcolor="#DDDDDD" width="121">2.<A HREF="<dtml-var absolute_url>"
class="menusmalllink"><dtml-var title></A></TD>
</dtml-if>
</TR>
</dtml-in>
Simple no ! But it doesn't work :(
Evan Simpson wrote:
> Arnaud Lecat wrote:
>
> > How come that a simple test <dtml-if "mydocid==id">blah blah</dtml-if>
> > isn't true
> > whereas the values seem to be the same (mydocid and id seems to contain
> > the same
> > string)....
>
> One or the other (or both) may not be strings, but rather
> methods/functions which *return* a string. The cases are
> indistinguishable with <dtml-var v> and <dtml-var "_['v']">, but require
> <dtml-if "mydocid==id()"> if 'id' is a function.
--
>> WinErr: 080 Clavier introuvable - Veuillez appuyer
sur n'importe quelle touche pour continuer. <<
Arnaud LECAT >> Email: lecat@hexanet.fr >> WWW page:www.hexanet.fr/~lecat
HEXANET >> http://www.hexanet.fr
Z.A. Farman sud - 9 rue Roland Coffignot
BP 415 - 51689 Reims Cedex 2 - France
phone: (33) 03 26 79 30 05 Fax: (33) 03 26 79 30 06