From f6345c45ffcd7f60444bf371dc0e7120819ca083 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Tue, 12 Jun 2012 08:25:22 -0500 Subject: [PATCH] fixed pymongo import? --- VERSION | 2 +- gluon/dal.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 44b9d158..f702230c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-06-12 08:22:25) dev +Version 2.00.0 (2012-06-12 08:25:19) dev diff --git a/gluon/dal.py b/gluon/dal.py index e9dacc02..016d6786 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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):