From f95af290494f2ed39009b3deb437a739b192224a Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 7 Aug 2012 09:33:28 -0500 Subject: [PATCH] possibe fix to attributes distinct in mongodbadapter --- VERSION | 2 +- gluon/dal.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index d82be3de..179086b9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-08-07 09:15:55) dev +Version 2.00.0 (2012-08-07 09:33:26) dev diff --git a/gluon/dal.py b/gluon/dal.py index cf159784..0d168286 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -4799,7 +4799,8 @@ class MongoDBAdapter(NoSQLAdapter): from pymongo.son import SON for key in set(attributes.keys())-set(('limitby','orderby')): - raise SyntaxError, 'invalid select attribute: %s' % key + if attributes[key]!=None: + raise SyntaxError, 'invalid select attribute: %s' % key new_fields=[] mongosort_list = []