[Zope] A better way...

Martijn Pieters mj@antraciet.nl
Thu, 23 Sep 1999 13:52:03 +0200


At 10:18 23/09/99 , Arnaud Lecat wrote:
>Hi... here's a piece of code...
>
><dtml-with expr="PARENTS[_.len(PARENTS)-2]">
><dtml-if "navigate_filter('donav','yes',_.None)">
><TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0 width="130">
><dtml-in "navigate_filter('donav','yes',_.None)" skip_unauthorized=1>
>     <TR><TD>Folder : <dtml-var title></TD></TR>
></dtml-in>
></TABLE>
></dtml-if>
></dtml-with>
>
>I'm sure there's a better way to do for grouping the dtml-if and dtml-in
>in this case...
>
>Any idea ?

Don't know if this is better:

<dtml-with expr="PARENTS[_.len(PARENTS)-2]">
<dtml-in "navigate_filter('donav','yes',_.None)" skip_unauthorized=1>
   <dtml-if sequence-start>
     <TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0 width="130">
   </dtml-if>
     <TR><TD>Folder : <dtml-var title></TD></TR>
   <dtml-if sequence-end>
     </TABLE>
   </dtml-if>
</dtml-in>
</dtml-with>

--
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
------------------------------------------