From ade3bf0a4d07ae31d937ba1b1fe92fc4b1bcaf7b Mon Sep 17 00:00:00 2001 From: helmutm Date: Fri, 17 Sep 2010 08:06:36 +0000 Subject: [PATCH] provide additional not_any operator git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3997 fd906abe-77d9-0310-91a1-e0d9ade77398 --- composer/report/base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/composer/report/base.py b/composer/report/base.py index 99358d4..28c4c0e 100644 --- a/composer/report/base.py +++ b/composer/report/base.py @@ -193,7 +193,11 @@ def checkAny(value, compValue): return True return False -operators = {'any': checkAny, 'in': checkIn, 'only': checkOnly} +def checkNotAny(value, compValue): + return not checkAny(value, compValue) + +operators = {'any': checkAny, 'not_any': checkNotAny, + 'in': checkIn, 'only': checkOnly} class CompoundQueryCriteria(BaseQueryCriteria, Compound):