[Zope] Displaying all subobjects

2000-09-27 Thread brocken22
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

Re: [Zope] Displaying all subobjects

2000-09-27 Thread Phil Harris
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,

Re: [Zope] Displaying all subobjects

2000-09-27 Thread Phil Harris
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

Re: [Zope] Displaying all subobjects

2000-09-27 Thread Chris Withers
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

Re: [Zope] Displaying all subobjects

2000-09-27 Thread brocken22
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

Re: [Zope] Displaying all subobjects

2000-09-27 Thread Jeff Hoffman
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