[Zope] zope and python script

Frank Tegtmeyer fte@lightwerk.com
28 Feb 2002 09:32:42 +0100


"Thomas B. Passin" <tpassin@mitretek.org> writes:

> If you don't want to have the possiblity of an empty <ul> element, you could
> write
> 
> <dtml-let List=Python_script>
>     <dtml-if List>
>         <ul>
>             <dtml-in List>
>                 ...
>             </dtml-in>
>         </ul>
>     </dtml-if>
> </dtml-let>

Yes, that's definitely cleaner.
Does it double the necessary storage for the list? I think dtml-in has
to have the list in memory to provide it's attributes. If the list is
huge this may be a problem, but in this case dtml-in is a problem by
itself anyway.

Regards, Frank