From 35998633043f76859891d8c8bc81e73edd0789ad Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 7 Dec 2013 10:18:33 -0600 Subject: [PATCH] fixed 1801:error in DAL using MongoDB with 'list:reference ', thanks Alan --- VERSION | 2 +- gluon/dal.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 5f6efe32..8206c2d4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.8.2-stable+timestamp.2013.12.07.10.15.16 +Version 2.8.2-stable+timestamp.2013.12.07.10.17.35 diff --git a/gluon/dal.py b/gluon/dal.py index 6005b545..bea06f8e 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -5647,9 +5647,6 @@ class MongoDBAdapter(NoSQLAdapter): value = obj else: value = NoSQLAdapter.represent(self, obj, fieldtype) - if isinstance(obj, (list, tuple)) and \ - (not fieldtype == "json" or fieldtype.startswith('list:')): - return value # reference types must be convert to ObjectID if fieldtype =='date': if value == None: