From bb5a613ad224823ebca9e845206df63c85ee69b8 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 31 Oct 2012 11:43:11 -0500 Subject: [PATCH] fixed issue 1130, prevent exception for virtual fields in forms, thanks hi21alt --- VERSION | 2 +- gluon/sqlhtml.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 82ba994c..960afd2b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-10-31 10:23:52) stable +Version 2.2.1 (2012-10-31 11:43:03) stable diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index a42a0aab..77b332c8 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -2561,7 +2561,7 @@ class SQLTABLE(TABLE): else: raise SyntaxError('something wrong in Rows object') r_old = r - if not field: + if not field or isinstance(field, (Field.Virtual, Field.Lazy)): pass elif linkto and field.type == 'id': try: