fixed Issue 1453: Missing equivalent for Row.__int__ that works with new long-type record id, thanks Dominic
This commit is contained in:
1 parent
887d4cc136
commit
c1f0bc3a6d
2 files changed
+4
-1
No files matched your search
@@ -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
|
||||||
@@ -6851,6 +6851,9 @@ class Row(object):
|
|||||||
def __int__(self):
|
def __int__(self):
|
||||||
return object.__getattribute__(self,'id')
|
return object.__getattribute__(self,'id')
|
||||||
|
|
||||||
|
def __long__(self):
|
||||||
|
return long(object.__getattribute__(self,'id'))
|
||||||
|
|
||||||
def __eq__(self,other):
|
def __eq__(self,other):
|
||||||
try:
|
try:
|
||||||
return self.as_dict() == other.as_dict()
|
return self.as_dict() == other.as_dict()
|
||||||
|
|||||||
Reference in new issue
Block a user