[Zope] Re: ZCatalog indexing help request
Kamal Gill
gill@library.ucsf.edu
Tue, 17 Dec 2002 10:56:26 -0800
Casey,
"not noindex" appears to only index objects that have a noindex
property set as false. What I need is an expression that will not
index objects that have a noindex property set as true. Objects that
have the noindex property set as false *and* objects that do not have a
noindex property should be indexed.
This is the sort of rule I need...
Filename Properties Index?
file1.html noindex=true no
file2.html noindex=false yes
file3.html (none) yes
- Kamal
On Tuesday, December 17, 2002, at 09:42 AM, Casey Duncan wrote:
> Did you try:
>
> not noindex
>
> hth,
>
> -Casey
>
> On Monday 16 December 2002 07:25 pm, Kamal Gill wrote:
>>> not getattr(_.this(),'noindex')
>>
>> I'm afraid this did not work for me. There are no error messages
>> returned, but there are no items added to the catalog as there should
>> be.
>> Any other ideas?
>>
>>
>> On Monday, December 16, 2002, at 03:30 PM, Maik Jablonski wrote:
>>
>>> Kamal Gill wrote:
>>>>> 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.
>>>
>>> Ok, I didn't got your problem. Next try...:) You'll have to use
>>> acquisition:
>>>
>>> not getattr(_.this(),'noindex')
>>>
>>> this one should do the magic you'll need...
>>>
>>> -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 )
>>
>>
>> _______________________________________________
>> 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 )
>>
>