[Zope] Product Update Strategy

Chris Withers chrisw@nipltd.com
Mon, 20 Aug 2001 13:00:38 +0100


Roché Compaan wrote:
> 
> I can't see how UpdateSupport will really help me in my case.  This is a
> ZPatterns
> application and all product classes are ZClasses.  I want to update some of
> the
> methods inside specialists without messing up persistent data in racks.  If
> you use
> the ZODB as storage with a ZPatterns app the location of racks becomes
> problematic
> quickly.

..well doing this kindof thing is exactly what I use it for: you write a new
version of a product which has attributes in different places in classes, etc,
and you need to update old instances.

> I also want to make the updating as simple as possible without somebody
> having to install
> other products to make updating possible.

Well, if you don't want them installing one more product and an external method,
then you're left with __setstate__ hackery which is notoriously unreliable :-S

cheers,

Chris