From 1ca5e5524eec82f72f6718e808557f3683370358 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 19 Jun 2014 17:17:29 -0500 Subject: [PATCH] fixed possible bug in dal --- VERSION | 2 +- gluon/dal.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 7e455225..946c24ca 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.9.5-trunk+timestamp.2014.06.14.10.06.38 +Version 2.9.5-trunk+timestamp.2014.06.19.17.16.40 diff --git a/gluon/dal.py b/gluon/dal.py index 9397706c..ebc80f2e 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -7315,13 +7315,13 @@ def sqlhtml_validators(field): def ff(r, id): row = r(id) if not row: - return id + return str(id) elif hasattr(r, '_format') and isinstance(r._format, str): return r._format % row elif hasattr(r, '_format') and callable(r._format): return r._format(row) else: - return id + return str(id) if field_type in (('string', 'text', 'password')): requires.append(validators.IS_LENGTH(field_length)) elif field_type == 'json':