From cd58e034ca6e66f95272a80636d0e05c7ec4e5ae Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 28 Aug 2012 14:57:23 -0500 Subject: [PATCH] added backward compatibility fix for row.id when id not called id (doh) --- VERSION | 2 +- gluon/dal.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 2b4d761e..0d57e382 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.1 (2012-08-28 14:45:03) rc4 +Version 2.00.1 (2012-08-28 14:57:17) rc4 diff --git a/gluon/dal.py b/gluon/dal.py index 1a672c22..ee73c25e 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -1824,6 +1824,10 @@ class BaseAdapter(ConnectionPool): if field.filter_out: value = field.filter_out(value) colset[fieldname] = value + + # for backward compatibility + if field.type=='id' and fieldname!='id' and not 'id' in table.fields: + colset['id'] = value if field.type == 'id' and not cacheable: # temporary hack to deal with