fixed Issue 1453: Missing equivalent for Row.__int__ that works with new long-type record id, thanks Dominic

This commit is contained in:
mdipierro
2013-04-15 22:58:05 -05:00
parent 887d4cc136
commit c1f0bc3a6d
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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
+3
View File
@@ -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()