Re: [Zope] dtml-in theentiresite
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 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-in theentiresite
> Any other good solutions are welcomed! There are several 'Sitemap' solutions that do this more or less, but... Any reason you can't use a catalog for this and catalog on the property? This is much faster and much more flexible Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-in theentiresite
peter be wrote: > 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. Does your site have any folderish objects in it? Doe you want to recurse abnd iterate through them? This should work unless you need to recurse: cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-in theentiresite
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. Any other good solutions are welcomed! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )