[Zope] Searching for Missing Values in ZCatalog

Michel Pelletier michel@digicool.com
Mon, 30 Aug 1999 23:45:12 -0400


Kevin Dangoor wrote:
> 
>     How do I search for all objects that are missing a given property (or
> that property is empty)? The specific case is a string called "subcategory".
> 
> Catalog({'meta_type' : 'blah', 'category' : 'top', 'subcategory' :
> <what???>})
> 
> I'm looking for the objects that have a category of 'top', but an empty
> subcategory...
> 

Catalog({'meta_type' : 'blah', 'category' : 'top', 'subcategory :
Missing.MV})

I don't thing the 'Missing' module is in the DTML namespace (if it is,
it's probably <dtml-var MV>) so you might need to do this from an
external method.

-Michel

> Thanks,
> Kevin
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
> 
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )