[Seaside] registerObjectForBacktracking, submit and execute b lock
Avi Bryant
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
> http://lists.squeakfoundation.org/pipermail/seaside/2004-June/
> 003107.html
>
> 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
> subclasses
> to use a deeper copy.
Thanks, I had forgotten about that discussion. That's clearly the
right solution; let's adopt it.
Avi
More information about the Seaside
mailing list