[Zope] update existing instances of a class?

Chris Withers chris at simplistix.co.uk
Fri Sep 3 04:46:10 EDT 2004


John Schinnerer wrote:

> I have a python product that I have modified (most importantly by
> adding some properties).
> Some instances already exist that were created prior to adding these
> properties.
> 
> I have heard it is possible to update the existing instances (so that
> they get the new properties) - is this true?

Yep, using an external method, and maybe a bit of help from:
http://www.zope.org/Members/chrisw/UpdateSupport

Also, you could just add class variables to your object's class which 
have sensible default.

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list