Commit 5dd61519 authored by Vincent Pelletier's avatar Vincent Pelletier

Corrects __hash__ functions on objects : *must* return an int.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5080 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7fd0d855
......@@ -1921,7 +1921,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
# Hash method
def __hash__(self):
return self.getUid()
return hash(self.getUid())
#psyco.bind(getObjectMenu)
......
......@@ -81,7 +81,7 @@ class XMLObject( Folder ):
# Hash method
def __hash__(self):
return self.getUid()
return hash(self.getUid())
InitializeClass(XMLObject)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment