Hi How come this test doesn't work ? <dtml-in "navigate_filter('donav','yes',_.None)" sort=title_or_id skip_unauthorized=1> <dtml-if expr="id != index_html"> . . . blah blah -- >> 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
On Tue, 24 Aug 1999, Arnaud Lecat wrote:
Hi
How come this test doesn't work ?
<dtml-in "navigate_filter('donav','yes',_.None)" sort=title_or_id skip_unauthorized=1> <dtml-if expr="id != index_html"> You probably want to access the id attribute and compare it with index_html constant. <dtml-if "id<>'index_html'">
Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
At 10:00 24/08/99 , Arnaud Lecat wrote:
Hi
How come this test doesn't work ?
<dtml-in "navigate_filter('donav','yes',_.None)" sort=title_or_id skip_unauthorized=1> <dtml-if expr="id != index_html">
What is the error you are getting? On certain objects id is a method, on others it is an attribute. The expression 'id != index_html' also tests if id (either a string or a method object) is equal to the object with id index_html. Try this: "if _['id'] != 'index_html'" Which makes sure that is 'id' is a method, it is called and it's result is used. You then compare it to the string 'index_html'. -- 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 ------------------------------------------
participants (3)
-
Andreas Kostyrka -
Arnaud Lecat -
Martijn Pieters