fixed mongo issue, thanks Uolter

This commit is contained in:
mdipierro
2012-08-20 08:06:28 -05:00
parent 5a4148b712
commit a90028441a
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-08-19 18:36:14) dev
Version 2.00.0 (2012-08-20 08:06:23) dev
+4
View File
@@ -4880,6 +4880,10 @@ class MongoDBAdapter(NoSQLAdapter):
# need to define all the 'sql' methods gt,lt etc....
def select(self,query,fields,attributes,count=False,snapshot=False):
try:
from pymongo.objectid import ObjectId
except ImportError:
from bson.objectid import ObjectId
tablename, mongoqry_dict, mongofields_dict, \
mongosort_list, limitby_limit, limitby_skip = \
self._select(query,fields,attributes)