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:
parent
f0e3d04b1a
commit
ade3bf0a4d
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue