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... Thanks, Kevin
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 )
participants (2)
-
Kevin Dangoor -
Michel Pelletier