Hi all, i need view all objects in all subfolders, but the dtml-in see only the current folder. How i make the dtml-in search all the subfolders? thanks, Daniel _______________________________________________________________________ Copa 2002 Yahoo! - Patrocinador oficial da Copa do Mundo da FIFA 2002 http://br.sports.yahoo.com/fifaworldcup/
on Thu, 2002-06-27 at 15:35, Daniel Schmitz wrote:
Hi all,
i need view all objects in all subfolders, but the dtml-in see only the current folder. How i make the dtml-in search all the subfolders?
thanks, Daniel
hi, three ways ahead: - recursion [call your dtml for all folders in your dtml-in and so on] => not recommended - use ZopeFind(self, obj, obj_ids=None, obj_metatypes=None, obj_searchterm=None, obj_expr=None, obj_mtime=None, obj_mspec=None, obj_permission=None, obj_roles=None, search_sub=0, REQUEST=None, result=None, pre=''): => may work for small sites - use and query a ZCatalog! => if you have a big site, this should give you enough performance. greetings, maik -- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
=?iso-8859-1?Q?Daniel_Schmitz?= writes:
i need view all objects in all subfolders, but the dtml-in see only the current folder. How i make the dtml-in search all the subfolders? You use "ZopeFind" (documented e.g. in the ZQR (Zope Quick Reference))
Dieter
participants (3)
-
Daniel Schmitz -
Dieter Maurer -
Maik Jablonski