Commit f15090be authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

define __eq__ and __ne__ for DivergenceMessage otherwise all instances will be...

define __eq__ and __ne__ for DivergenceMessage otherwise all instances will be handled as different.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24592 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9f74e105
......@@ -61,4 +61,10 @@ class DivergenceMessage(ObjectMessage):
return 'cell'
return None
def __eq__(self, other):
return self.__dict__ == other.__dict__
def __ne__(self, other):
return self.__dict__ != other.__dict__
allow_class(DivergenceMessage)
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