[ZDP] BackTalk to Document Zope Developer's Guide (2.4 edition)/ZODB Persistent Components
webmaster@zope.org
webmaster@zope.org
Fri, 15 Nov 2002 15:20:41 -0500
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZDG/current/Persistence.stx#2-58
---------------
To resolve a conflict, a class should define an
'_p_resolveConflict' method. This method takes three arguments.
'oldState' -- The state of the object that the changes made by
the current transaction were based on. The method is permitted
to modify this value.
'savedState' -- The state of the object that is currently
stored in the database. This state was written after 'oldState'
and reflects changes made by a transaction that committed
before the current transaction. The method is permitted to
modify this value.
'newState' -- The state after changes made by the current
transaction. The method is *not* permitted to modify this
value. This method should compute a new state by merging
changes reflected in 'savedState' and 'newState', relative to
'oldState'.
% Jace - Nov. 15, 2002 3:20 pm:
s/define an/define a/