[Zope] dtml-in theentiresite

Dieter Maurer dieter@handshake.de
Tue, 12 Sep 2000 20:10:39 +0200 (CEST)


peter be writes:
 > In the root....
 > A DTML Method....
 > 
 > Some objects (mostly DTML Documents) have a property (boolean) that tells
 > whether this is a helppage or not.
 > What I want to do is to loop though eash and every object in the entire site
 > (not very big) and check if the object has this property.
You can use "ZopeFind" (see the object reference on zdp.zope.org
for a documentation) with 

	obj_expr='_.hasattr(aq_explicit,"your_property")'


You will need Zope 2.2.1 as older Zope version have a ZopeFind bug
preventing this use.


Dieter