[Zope] ZCatalog: searching for all results that *don't* match

Toby Dickenson tdickenson@geminidataloggers.com
Mon, 10 Dec 2001 14:48:38 +0000


On Mon, 10 Dec 2001 16:22:57 +0200, "Jean Jordaan"
<jean@upfrontsystems.co.za> wrote:

>Hi all
>
>I'm sure this is dead simple, but I'm not getting it. How
>do I do this? ::
>
>      brains =3D catalog( Status !=3D 'dismissed'
>                      , meta_type =3D 'Reminder'
>                      )
>
>Specifically, that "!=3D" inequality condition. I want all
>reminders that aren't dismissed.

If you know all possible status values:

catalog( Status =3D ['outstanding','cancelled','anything else']
       , meta_type =3D 'Reminder'
       )


Toby Dickenson
tdickenson@geminidataloggers.com