fixed issue 843, thanks hoatre2001

This commit is contained in:
Massimo Di Pierro committed 2012-06-13 17:02:00 -05:00
1 parent 344c2e85c4
commit 9cdb9f1600
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-06-13 16:50:48) dev Version 2.00.0 (2012-06-13 17:01:54) dev
+3
View File
@@ -4610,6 +4610,9 @@ class MongoDBAdapter(NoSQLAdapter):
return expression return expression
def _select(self,query,fields,attributes): def _select(self,query,fields,attributes):
try:
from bson.son import SON
except ImportError:
from pymongo.son import SON from pymongo.son import SON
for key in set(attributes.keys())-set(('limitby','orderby')): for key in set(attributes.keys())-set(('limitby','orderby')):