From fe4c6a9bb050c2e942e1387fd19ab5550ec818fa Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 4 Jul 2012 22:47:25 -0500 Subject: [PATCH] fixed GAE contains,issue 874, thanks Howesc --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 9793a60d..fd642f59 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-07-04 19:22:37) dev +Version 2.00.0 (2012-07-04 22:47:22) dev diff --git a/gluon/dal.py b/gluon/dal.py index 8a42aa08..ca4bdeae 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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,