[Seaside] registerObjectForBacktracking, submit and execute b lock
avi at beta4.com
Mon Aug 30 12:40:54 CEST 2004
On Aug 30, 2004, at 11:09 AM, Bany, Michel wrote:
> This subject was already discussed here. See
> I have actually fixed the problem with a bit of refactoring of the
> snapshot logic by moving the snapshot behavior to Object.
> I defined the following methods in Object
> . snapshotCopy
> . restoreFromSnapshot:
> . isIdenticalToSnapshot:
> And I changed the following methods in WAStateRegistry accordingly
> . registerObject:
> . restoreObject:fromSnapshot:
> . snapshot
> . snapshot:isIdenticalTo:
> The default behaviour remains based on shallowCopy for the snapshot.
> You may however re-implement the three Object methods as needed in
> to use a deeper copy.
Thanks, I had forgotten about that discussion. That's clearly the
right solution; let's adopt it.
More information about the Seaside