added backward compatibility fix for row.id when id not called id (doh)

This commit is contained in:
mdipierro
2012-08-28 14:57:23 -05:00
parent 0ad9e3b707
commit cd58e034ca
2 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
Version 2.00.1 (2012-08-28 14:45:03) rc4
Version 2.00.1 (2012-08-28 14:57:17) rc4

View File

@@ -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