From ebe94f76d3286fbc71a6fff1f6744f98fdca0f92 Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Wed, 21 Mar 2012 07:11:31 -0500 Subject: [PATCH] error in represent list:string fixed --- VERSION | 2 +- gluon/dal.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 388ed63b..77ddc7e4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-03-20 20:28:56) dev +Version 1.99.7 (2012-03-21 07:11:29) dev diff --git a/gluon/dal.py b/gluon/dal.py index cec33103..72d6108b 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -1444,8 +1444,8 @@ class BaseAdapter(ConnectionPool): if not obj: obj = [] elif not isinstance(obj, (list, tuple)): - obj = [int(obj)] - elif fieldtype.startswith('list:string'): + obj = [obj] + if fieldtype.startswith('list:string'): obj = [str(item) for item in obj] else: obj = [int(item) for item in obj]