provide additional not_any operator

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3997 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2010-09-17 08:06:36 +00:00
parent f0e3d04b1a
commit ade3bf0a4d

View file

@ -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):