From 7356c122ded87e0c1dea00b3b586ef30c7312de3 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 11 Sep 2012 09:39:13 -0500 Subject: [PATCH] fixed issue 993, thanks Sherdim --- VERSION | 2 +- gluon/sqlhtml.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index db3cc7ff..814b7e64 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.8 (2012-09-11 09:26:57) stable +Version 2.0.8 (2012-09-11 09:39:06) stable diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 4a7857df..94a1f887 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1410,7 +1410,7 @@ class SQLFORM(FORM): type(''): ('string', None), type(True): ('boolean', None), type(1): ('integer', IS_INT_IN_RANGE(-1e12,+1e12)), - type(1.0): ('double', IS_INT_IN_RANGE(-1e12,+1e12)), + type(1.0): ('double', IS_FLOAT_IN_RANGE()), type([]): ('list:string', None), type(datetime.date.today()): ('date', IS_DATE()), type(datetime.datetime.today()): ('datetime', IS_DATETIME())