[Seaside] Re: [Pharo-users] Seaside and Fuel
Paul DeBruicker
pdebruic at gmail.com
Wed Nov 16 15:40:42 UTC 2011
You can use Fuel as the serializer/materializer for the Simple Image
Based Persistence scheme described here:
http://onsmalltalk.com/simple-image-based-persistence-in-squeak/
and implemented here:
http://www.squeaksource.com/SimplePersistence.html
Just subclass SPFileDatabase and override
SPFileDatabase class>>#saveRepository and SPFileDatabase
class>>#lastBackup to use Fuel rather than the ReferenceStream
You'll need to specify what you want to save , when to save it, and how
to restore it but the package above takes care of managing the backups.
I've attached a mcz file with a subclass that uses Fuel but you'll need
to load the package on squeaksource as well first
On 11-11-16 06:04 AM, Mariano Martinez Peck wrote:
>
>
> On Wed, Nov 16, 2011 at 3:07 AM, Francois Stephany
> <tulipe.moutarde at gmail.com <mailto:tulipe.moutarde at gmail.com>> wrote:
>
> Hi Jeff,
> Or you can regularly serialize and save your data (every
> hour/day/whatever).
>
>
>
> Yes, this is something you can do for example with Pier. You can choose
> how much regulary to save the data. In addition, it lets you choose how
> many saves. Say you want max 3, then if there is a 4 save, it removes
> the oldest one. So you always have the last 3 saves.
>
> I'cced the seaside mailing list which may have better ideas.
>
> Cheers
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SimplePersistence-Fuel-PaulDeBruicker.1.mcz
Type: application/octet-stream
Size: 2390 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20111116/76162b74/SimplePersistence-Fuel-PaulDeBruicker.1.obj
More information about the seaside
mailing list