[ZODB-Dev] Undo in run-time
Jeremy Hylton
jeremy@ZOPE.COM (Jeremy Hylton)
Mon, 28 Oct 2002 11:00:26 -0500
>>>>> "ML" == Magnus Lycka <magnus@thinkware.se> writes:
ML> But what happens with persistent objects that are referenced by
ML> our program if they have changed or even become non-existent due
ML> to the rewinding of the database?
At the next transaction boundary (abort / commit / connection.sync),
all the modified objects will be updated with their new state. Any
attempt to commit a transaction with the current object state will
result in a ConflictError.
I'm not actually sure what will happen if you undo an object's
creation. It would be easy to create a small test to see, but I don't
have time to do that today.
Jeremy