[Neo-report] r2048 vincent - /trunk/neo/node.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 30 15:43:16 CEST 2010


Author: vincent
Date: Fri Apr 30 15:43:15 2010
New Revision: 2048

Log:
Only update node address and UUID when they actually change.

Modified:
    trunk/neo/node.py

Modified: trunk/neo/node.py
==============================================================================
--- trunk/neo/node.py [iso-8859-1] (original)
+++ trunk/neo/node.py [iso-8859-1] Fri Apr 30 15:43:15 2010
@@ -63,6 +63,8 @@
         self._manager._updateState(self, old_state)
 
     def setAddress(self, address):
+        if self._address == address:
+            return
         old_address = self._address
         self._address = address
         self._manager._updateAddress(self, old_address)
@@ -71,6 +73,8 @@
         return self._address
 
     def setUUID(self, uuid):
+        if self._uuid == uuid:
+            return
         old_uuid = self._uuid
         self._uuid = uuid
         self._manager._updateUUID(self, old_uuid)





More information about the Neo-report mailing list