From b45134512aec63dea08414f07a007b05a2c5a800 Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Tue, 5 Jun 2012 20:02:36 -0500 Subject: [PATCH] another SQLCustomType improvement, Alexander is right --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 906d58a1..7bc11a3d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-06-05 18:18:48) dev +Version 2.00.0 (2012-06-05 20:02:32) dev diff --git a/gluon/dal.py b/gluon/dal.py index e4018e3d..09fbb747 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -1493,7 +1493,7 @@ class BaseAdapter(ConnectionPool): obj = obj() if isinstance(fieldtype, SQLCustomType): value = fieldtype.encoder(obj) - if fieldtype.native in ('string','text'): + if fieldtype.type in ('string','text'): return self.adapt(value) return value if isinstance(obj, (Expression, Field)):