[Zope] ZCatalog: finding a match "in" an index

Jean Jordaan jean@upfrontsystems.co.za
Fri, 14 Dec 2001 11:18:58 +0200


Hi all

Hopefully this one is a complete no-brainer ..

I have an index called 'AssignedTo', currently a FieldIndex, 
containing lists like ['jean', 'isak']. I want to do a 
selection based on this index::

  <dtml-let
    brains="Reminders.getRemindersFiltered(
              AssignedTo = AUTHENTICATED_USER.getUserName() )">

But that doesn't work. Is there a way to ask whether something
is 'in' AssignedTo? Or would making AssignedTo a TextIndex
solve my problem?

Regards,
Jean