merge
This commit is contained in:
commit
da59707479
1 file changed
+6
-5
@@ -11,11 +11,12 @@ def domain_validate(value):
|
||||
if isinstance(arg, basestring):
|
||||
if arg not in ('AND', 'OR'):
|
||||
return False
|
||||
elif isinstance(arg, tuple) or \
|
||||
(isinstance(arg, list) and len(arg) > 2 and \
|
||||
(arg[1] in OPERATORS) or \
|
||||
(isinstance(arg[1], PYSON) and \
|
||||
arg[1].types() == set([str]))):
|
||||
elif (isinstance(arg, tuple)
|
||||
or (isinstance(arg, list)
|
||||
and len(arg) > 2
|
||||
and ((arg[1] in OPERATORS)
|
||||
or (isinstance(arg[1], PYSON)
|
||||
and arg[1].types() == set([str]))))):
|
||||
pass
|
||||
elif isinstance(arg, list):
|
||||
if not test_domain(arg):
|
||||
|
||||
Reference in new issue
Block a user