Bugfix:Solved the problem of expression conversion of list into tuples.

bzr revid: jvo@tinyerp.com-20080807130807-jfzlq06ldouddkzx
This commit is contained in:
Jay Vora 2008-08-07 18:38:07 +05:30
parent 748450b9f9
commit 61ac299d06
1 changed files with 18 additions and 15 deletions

View File

@ -81,6 +81,9 @@ class expression(object):
exp = exp[0]
else:
if not self._is_operator(exp[0][0]):
if isinstance(exp[0],list):
exp=tuple(exp[0])
else:
exp.insert(0, '&')
exp = tuple(exp)
else: