From 7b24ce3f41a7cff3e9d6fb1336e157c3ab049253 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 2 Sep 2012 22:34:24 -0500 Subject: [PATCH] fixed backward compatibility issue in dal with __int__, thanks Dominic --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index bb11df7b..886c6d0e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.6 (2012-09-02 22:30:28) stable +Version 2.0.6 (2012-09-02 22:34:20) stable diff --git a/gluon/dal.py b/gluon/dal.py index 5064fb47..c5330345 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -6460,7 +6460,7 @@ class Row(object): return '' % self.__dict__ def __int__(self): - return dict.__getitem__(self,'id') + return object.__getattribute__(self,'id') def __eq__(self,other): try: