Bugfix:Solved the problem of expression conversion of list into tuples.
bzr revid: jvo@tinyerp.com-20080807130807-jfzlq06ldouddkzx
This commit is contained in:
parent
748450b9f9
commit
61ac299d06
|
@ -81,8 +81,11 @@ class expression(object):
|
|||
exp = exp[0]
|
||||
else:
|
||||
if not self._is_operator(exp[0][0]):
|
||||
exp.insert(0, '&')
|
||||
exp = tuple(exp)
|
||||
if isinstance(exp[0],list):
|
||||
exp=tuple(exp[0])
|
||||
else:
|
||||
exp.insert(0, '&')
|
||||
exp = tuple(exp)
|
||||
else:
|
||||
exp = exp[0]
|
||||
|
||||
|
|
Loading…
Reference in New Issue