[Zope-CMF] Building a query using NOT

Ben Riga briga@borland.com
Wed, 16 May 2001 12:12:35 -0700


I'm having some trouble building a query for a method I'm working on.  Any
help, suggestions or pointers to reference or further reading material would
be appreciated.

I'm trying to build a query on the catalog that includes items that are
*not* in a particular 'Subject'.   In this case I'd like to get the
documents in the catalog that would NOT be in the following query:

<dtml-in "portal_catalog.searchResults(
    Subject = ['Analysts', 'Press']
  , sort_order='reverse' , review_state='published')" size="10">

Thanks,
Ben