[Zope] Displaying all subobjects

Chris Withers chrisw@nipltd.com
Wed, 27 Sep 2000 12:06:53 +0100

Phil Harris wrote:
> <dtml-in "objectItems()">
>   <dtml-if "meta_type=='Folder'">
>     <dtml-call "restrictedTraverse(_['id']+'/iterate')(_.None,_)">
>   </dtml-if>
>   <dtml-var id><br>
> </dtml-in>

How about this <untested>:

 <dtml-in "objectItems()">
   <dtml-if "meta_type=='Folder'">
     <dtml-with sequence-item>
      <dtml-var iterate>
   <dtml-var id><br>



PS: I find this sort of thing is often best done in an external method.
Or a python product (see the __call__ thread on zope-dev for all the fun
you can have there ;-)