[Zope] Re: Products and clases with new attributes
Maik Jablonski
maik.jablonski@uni-bielefeld.de
Mon, 07 Oct 2002 13:20:51 +0200
Antonio Beamud Montero wrote:
> Hi all:
> Long time ago I started to develop a big product, it's under development
> now, but with some stable releases in a client. My problem is that new
> releases of a Product adds new attributes and when I upgrade de Product,
> I need to create another instance and recreate all the system, because
> old instances in the zobd haven't that attributes...
> Now, it's no problem, but when this system is in production, with
> hundred of objects... buff... How I can solve this problem...?
>
> Thanks...
hi,
you can add a upgrade-method to your Product, which checks the existing
attributes and adds the missing ones... if you use the PropertyManager,
you should "rewrite" _properties.
cheers, maik
--
Maik Jablonski __o
www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group
Bielefeld, Germany (_)/(_) www.dzug.org