diff --git a/VERSION b/VERSION index 9cde945d..b10199c6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.3-stable+timestamp.2013.09.17.08.30.14 +Version 2.6.3-stable+timestamp.2013.09.18.08.28.35 diff --git a/gluon/dal.py b/gluon/dal.py index 7cd9aaa9..abff5a24 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -2150,9 +2150,15 @@ class BaseAdapter(ConnectionPool): for row in rowsobj.records: box = row[tablename] for f,v in fields_virtual: - box[f] = v.f(row) + try: + box[f] = v.f(row) + except AttributeError: + pass # not enough fields to define virtual field for f,v in fields_lazy: - box[f] = (v.handler or VirtualCommand)(v.f,row) + try: + box[f] = (v.handler or VirtualCommand)(v.f,row) + except AttributeError: + pass # not enough fields to define virtual field ### old style virtual fields for item in table.virtualfields: