[Zope] "dtml-in" question
Ed Leafe
ed@leafe.com
Fri, 24 Jan 2003 10:23:16 -0500
On Friday, January 24, 2003, at 09:58 AM, Thierry Florac wrote:
>>> Is there any way to achieve this, without writing a custom method ??
>>
>> <dtml-in objectValues()>
>> <dtml-if visible>
>> ...
>> </dtml-if>
>> </dtml-in>
>
> The problems when handling "dtml-in" in such a way are that :
> - you can't handle "sequence-start" or "sequence-end" correctly, when
> the first or last elements are not visible ;
> - you can't handle "dtml-else" correctly, when all the elements are
> not
> visible...
Yes, that's true. So why the resistance to writing a simple script to
do what you want? Any time I find myself taking more than a few seconds
to think about how to do something in straight DTML or ZPT, it always
turns out that I could simplify things greatly with a script.
___/
/
__/
/
____/
Ed Leafe
http://leafe.com/
http://opentech.leafe.com