fixed pymongo import?

This commit is contained in:
Massimo Di Pierro
2012-06-12 08:25:22 -05:00
parent d5c8e9a79f
commit f6345c45ff
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-06-12 08:22:25) dev
Version 2.00.0 (2012-06-12 08:25:19) dev
+2 -2
View File
@@ -4585,7 +4585,7 @@ class MongoDBAdapter(NoSQLAdapter):
return expression
def _select(self,query,fields,attributes):
from pymongo import son
from pymongo.son import SON
for key in set(attributes.keys())-set(('limitby','orderby')):
raise SyntaxError, 'invalid select attribute: %s' % key
@@ -4614,7 +4614,7 @@ class MongoDBAdapter(NoSQLAdapter):
else:
limitby_skip = limitby_limit = 0
mongofields_dict = son.SON()
mongofields_dict = SON()
mongoqry_dict = {}
for item in fields:
if isinstance(item,SQLALL):