fixed mongo issue, thanks Uolter
This commit is contained in:
1 parent
5a4148b712
commit
a90028441a
2 files changed
+5
-1
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-08-19 18:36:14) dev
|
Version 2.00.0 (2012-08-20 08:06:23) dev
|
||||||
@@ -4880,6 +4880,10 @@ class MongoDBAdapter(NoSQLAdapter):
|
|||||||
# need to define all the 'sql' methods gt,lt etc....
|
# need to define all the 'sql' methods gt,lt etc....
|
||||||
|
|
||||||
def select(self,query,fields,attributes,count=False,snapshot=False):
|
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, \
|
tablename, mongoqry_dict, mongofields_dict, \
|
||||||
mongosort_list, limitby_limit, limitby_skip = \
|
mongosort_list, limitby_limit, limitby_skip = \
|
||||||
self._select(query,fields,attributes)
|
self._select(query,fields,attributes)
|
||||||
|
|||||||
Reference in new issue
Block a user