From 092ac2fdd4dc309bd32f6da16a79a0a0c6bbf9d9 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Tue, 6 Dec 2011 08:28:23 -0600 Subject: [PATCH] fixed problem with ignore_common_filters, thanks Yair --- VERSION | 2 +- gluon/dal.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 0a91b25a..5c9802df 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.3 (2011-12-05 19:57:11) dev +Version 1.99.3 (2011-12-06 08:28:04) dev diff --git a/gluon/dal.py b/gluon/dal.py index d1c87ecb..a063bb94 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -3412,7 +3412,7 @@ class GoogleDatastoreAdapter(NoSQLAdapter): else: raise SyntaxError, "Unable to determine a tablename" - if not query.ignore_common_filters: + if query and not query.ignore_common_filters: query = self.common_filter(query,[tablename]) tableobj = self.db[tablename]._tableobj @@ -4677,7 +4677,7 @@ def index(): def smart_query(self,fields,text): return Set(self, smart_query(fields,text)) - def __call__(self, query=None, ignore_common_filters=False): + def __call__(self, query=None, ignore_common_filters=None): if isinstance(query,Table): query = query._id>0 elif isinstance(query,Field):