From cffefbeb2ed6fad23e1ae861ab5fbcfd16efd960 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 20 Sep 2012 09:27:05 -0500 Subject: [PATCH] possibly fixed issue 1020 --- VERSION | 2 +- gluon/dal.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 19bc8e22..6938aeab 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-20 09:24:33) stable +Version 2.0.9 (2012-09-20 09:27:02) stable diff --git a/gluon/dal.py b/gluon/dal.py index e4fe3b1d..857bcf84 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -4323,7 +4323,8 @@ class GoogleDatastoreAdapter(NoSQLAdapter): if first.type != 'id': return [GAEF(first.name,'!=',self.represent(second,first.type),lambda a,b:a!=b)] else: - second = Key.from_path(first._tablename, long(second)) + if not second is None: + second = Key.from_path(first._tablename, long(second)) return [GAEF(first.name,'!=',second,lambda a,b:a!=b)] def LT(self,first,second=None):