fixed GAE contains,issue 874, thanks Howesc

This commit is contained in:
mdipierro
2012-07-04 22:47:25 -05:00
parent f8d5bf87c1
commit fe4c6a9bb0
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.00.0 (2012-07-04 19:22:37) dev
Version 2.00.0 (2012-07-04 22:47:22) dev

View File

@@ -4104,7 +4104,7 @@ class GoogleDatastoreAdapter(NoSQLAdapter):
def CONTAINS(self,first,second):
if not first.type.startswith('list:'):
raise SyntaxError, "Not supported"
return [GAEF(first.name,'=',self.expand(second,first.type[5:]),lambda a,b:a in b)]
return [GAEF(first.name,'=',self.expand(second,first.type[5:]),lambda a,b:b in a)]
def NOT(self,first):
nops = { self.EQ: self.NE,