From c1f0bc3a6d1b3786c0906a1cbd90c45c9489142d Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 15 Apr 2013 22:58:05 -0500 Subject: [PATCH] fixed Issue 1453: Missing equivalent for Row.__int__ that works with new long-type record id, thanks Dominic --- VERSION | 2 +- gluon/dal.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index d0e19f04..4543880b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.6-stable+timestamp.2013.04.15.18.05.12 +Version 2.4.6-stable+timestamp.2013.04.15.22.57.21 diff --git a/gluon/dal.py b/gluon/dal.py index 3e6301d2..88ae5718 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -6851,6 +6851,9 @@ class Row(object): def __int__(self): return object.__getattribute__(self,'id') + def __long__(self): + return long(object.__getattribute__(self,'id')) + def __eq__(self,other): try: return self.as_dict() == other.as_dict()