[Zope] case-independant catalog sorting

Marc Lindahl marc at bowery.com
Wed May 12 12:34:42 EDT 2004


Oh I see.  I was hoping that you could pass instructions via a record, 
like you can tell DateTime indices to sort in different ways....

On Wednesday, May 12, 2004, at 02:57  AM, Andreas Jung wrote:

> No,
>
> if you want to index an attribute 'foobar' then go and create a 
> pythonscrip in the
> zope root 'foobar_index':
>
> return context.foobar.lower()
>
> The create a FieldIndex 'foobar_index'. This call the pythonscript for 
> every object
> and the pythonscript will return the attribute in lowercase...
>
> -aj
>
> --On Mittwoch, 12. Mai 2004 2:54 Uhr -0400 Marc Lindahl 
> <marc at bowery.com> wrote:
>
>> you mean, re-sort the set of results returned by the catalog?
>>
>> On Wednesday, May 12, 2004, at 12:51  AM, Andreas Jung wrote:
>>
>>> Write a PythonScript that returns the content to be indexed in a
>>> normalized form and place it somewhere
>>> in the top of your site.
>>>
>>> -aj
>>>
>>> --On Dienstag, 11. Mai 2004 18:20 Uhr -0400 Marc Lindahl
>>> <marc at bowery.com> wrote:
>>>
>>>> Does anyone know how to get a sort on a (zcatalog) FieldIndex to be
>>>> case-independent (case-folding)?
>>>>
>>>>
>>>> _______________________________________________
>>>> Zope maillist  -  Zope at zope.org
>>>> http://mail.zope.org/mailman/listinfo/zope
>>>> **   No cross posts or HTML encoding!  **
>>>> (Related lists -  
>>>> http://mail.zope.org/mailman/listinfo/zope-announce
>>>>  http://mail.zope.org/mailman/listinfo/zope-dev )
>>>
>>>
>>>
>>>
>
>
>
>




More information about the Zope mailing list