[Checkins] [zopefoundation/mongopersist] 0adb9c: Bug: Do not rely on obj.__cmp__() in data manager.
GitHub
noreply at github.com
Sun Feb 9 17:44:26 CET 2014
Branch: refs/heads/master
Home: https://github.com/zopefoundation/mongopersist
Commit: 0adb9c5de22876d9b21068715d36aa86727ba2c8
https://github.com/zopefoundation/mongopersist/commit/0adb9c5de22876d9b21068715d36aa86727ba2c8
Author: Stephan Richter <stephan.richter at gmail.com>
Date: 2014-02-09 (Sun, 09 Feb 2014)
Changed paths:
M CHANGES.txt
M setup.py
M src/mongopersist/datamanager.py
M src/mongopersist/tests/test_datamanager.py
M src/mongopersist/zope/container.py
Log Message:
-----------
Bug: Do not rely on obj.__cmp__() in data manager.
Objects where compared within the transaction manager for different
reasons. This could create complicated scenarios (including data loss) when
the ``__cmp__()`` method of the object was non-trivial. Now the result of
the ``id(obj)`` function is used to compare objects, which is very save,
since the behavior of this function call cannot be changed for an object.
More information about the checkins
mailing list