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 - [EMAIL
ml-if
dtml-var idbr/
/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
[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 27,
nal Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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
Phil Harris wrote:
dtml-in "objectItems()"
dtml-if "meta_type=='Folder'"
dtml-call "restrictedTraverse(_['id']+'/iterate')(_.None,_)"
/dtml-if
dtml-var idbr
/dtml-in
How about this untested:
dtml-in "objectItems()"
dtml-if "meta_type=='Folder'"
dtml-with sequence-item
Hallo Chris,
thanks for the quick reply, but the method is displaying all the objects
in the folder and I'd like to get only one metatype of
objects(i.e.ZClass-cars)but for all levels.
--
Sent through GMX FreeMail - http://www.gmx.net
___
Zope
On Wed, 27 Sep 2000 [EMAIL PROTECTED] wrote:
Hallo Chris,
thanks for the quick reply, but the method is displaying all the objects
in the folder and I'd like to get only one metatype of
objects(i.e.ZClass-cars)but for all levels.
Try creating a DTML Method called 'iterate' (tested):
ul