possibe fix to attributes distinct in mongodbadapter

This commit is contained in:
mdipierro
2012-08-07 09:33:28 -05:00
parent e7c8b08a43
commit 5885464341
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-08-07 09:15:55) dev
Version 2.00.0 (2012-08-07 09:33:26) dev
+2 -1
View File
@@ -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 = []