[squeak-dev] versioning objects

Janko Mivšek janko.mivsek at eranova.si
Tue Apr 15 22:20:06 UTC 2008


Hi Jimmie,

In Aida/Web you have quite some support for versioning. See Aida-Support 
  category and VersionedObject with VersionSpec. For instance 
VersionedObject is used in Aida/Scribo for versioning content (wiki 
pages etc.).

JAnko

Jimmie Houchin wrote:
> Hello,
> 
> I am writing a web app and I need to version the attributes of my
> objects so that I can enable undo capabilities.
> 
> Is there a best practices way to offer such?
> 
> Currently I am implementing accessors which simply create an
> OrderedCollection for each attribute.
> 
> 
> id: anObject
>     id ifNil: [
>         id := OrderedCollection new.
>         id add: anObject].
>     (id = anObject) ifFalse: [id add: anObject]
> 
>  
> obj id
>     ^ id last
> 
> 
> Is there a more standard or better way to offer such features?
> 
> Any wisdom greatly appreciated.
> 
> Jimmie
> 
> 

-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si



More information about the Squeak-dev mailing list