[Zope] how to search entire site from a sub dir?

Tino Wildenhain tino at wildenhain.de
Thu Sep 18 04:32:12 EDT 2003


Jianping Zhu wrote:
>  I have a zope the dirctory structure is
>  Root ->sub1f1->sub2f1->sub3f3
>       ->sub1f2
>       ->development->sundev->mydev
> 
>       I need to search entire site from mydev, i am trying to use
>       Zcatalog to do it but after i created A zcatalog under mydev, i
>       use find objects to put object to ZODB. but i can not find a way 
>       to seach the entire site, is there a way to do that?
>       Thanks
You should of course create the ZCatalog in root and not in a distant
leafe.
Its possible, but then you have to catalog all objects yourself rather
then letting ZCatalog do this for you. (ZCatalog uses ZopeFind()
for descending all folders and objects when you hit catalog items)

Regards
Tino





More information about the Zope mailing list