[Zope] string crisis....
Martijn Pieters
mj@antraciet.nl
Wed, 08 Sep 1999 16:26:38 +0200
At 16:04 08/09/99 , Arnaud Lecat wrote:
>Hi
>
>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)....
>
>Twiglight zone ?
Sometimes id is a method, not a string. Try mydocid==_['id'].
The _['id'] does a namespace lookup, which includes a call to id if id is a
method. This way it'll work wether or not id is a string.
--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------