[Zope] Displaying all subobjects
Phil Harris
phil.harris@zope.co.uk
Wed, 27 Sep 2000 11:52:57 +0100
How about,
<****Woah there boy! This is completely untested and untried in any way,
caveat emptor!!****>
create an dtml-method called iterate:
with this contents:
<dtml-in "objectItems()">
<dtml-if "meta_type == 'Folder'">
<dtml-call "id['iterate']">
</dtml-if>
<dtml-var id><br/>
</dtml-in>
The you can call this like so, from any other DTML_XXX:
<dtml-var iterate>
or
<dtml-var "this()['iterate']">
Or
......
hth
Phil
phil.harris@zweb.co.uk
----- Original Message -----
From: <brocken22@gmx.de>
To: <zope@zope.org>
Sent: Wednesday, September 27, 2000 11:20 AM
Subject: [Zope] Displaying all subobjects
> The second dumb question today:It's a horrible one!!!!
> How to iterate over all subfolders?
> "objectValues" shows only the same level, where the method resides.
> Thanks.
>
> --
> Sent through GMX FreeMail - http://www.gmx.net
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )