[Zope] Re: ZCatalog indexing help request
Kamal Gill
gill@library.ucsf.edu
Mon, 16 Dec 2002 15:24:59 -0800
> not this().getProperty('noindex')
This works for individual page template objects, but I was hoping to
ignore collections of objects contained in a folder that contains a
'noindex' property. I've tried selecting both 'Folder' and 'Page
Template' and applying the "not this().getProperty('noindex')
expression, which works for filtering out page templates with the
'noindex' property but does not filter out folders with the 'noindex'
property. Basically what I would like to do is ignore folders of
objects at a time using a 'noindex' property set at the particular
folder(s). Any ideas?
On Monday, December 16, 2002, at 02:18 PM, Maik Jablonski wrote:
> Kamal Gill wrote:
>> I need to know how to control what objects are indexed by ZCatalog
>> based on a custom property I have added to files and folders I do not
>> want indexed by ZCatalog. I have added a boolean property named
>> 'noindex' and have set its value as TRUE for files and folders I do
>> not want indexed by ZCatalog.
>> Now, what I need to know is what to enter in the expr:
>> |________________________| textarea form field of the find objects
>> tab of my ZCatalog object in order to index all page templates
>> *except* those that contain a 'noindex' property set to TRUE.
>
> please try:
>
> not this().getProperty('noindex')
>
> -mj
>
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> 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 )