diff --git a/VERSION b/VERSION index 2c2117c9..0711774f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-05-07 17:40:22) dev +Version 1.99.7 (2012-05-10 08:17:55) dev diff --git a/gluon/dal.py b/gluon/dal.py index 1570c41c..35842989 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -4694,10 +4694,11 @@ class MongoDBAdapter(NoSQLAdapter): print "mongo_list_dicts=%s" % mongo_list_dicts rows = [] colnames = [] - for record in mongo_list_dicts: + for k,record in enumerate(mongo_list_dicts): row=[] for column in record: - colnames.append(column) + if k==0: + colnames.append(column) if withId and (column == '_id'): if isinstance(record[column],pymongo.objectid.ObjectId): row.append( int(str(record[column]),16))