[Zope] update existing instances of a class?

Chris Withers chris at simplistix.co.uk
Wed Sep 22 08:56:38 EDT 2004


John Schinnerer wrote:

>>http://www.zope.org/Members/chrisw/UpdateSupport
> 
> I don't see how UpdateSupport applies to updating existing class
> instances...it seems to be for some 2.3.x catalog upgrades and Core
> Session Tracking?

Nope, those are example updaters, the idea is that you write one that 
does what you need, you can look at them for clues though...

>>Also, you could just add class variables to your object's class which
>>have sensible default.
> 
> I don't understand - previous instances will not have the properties
> unless they are updated, correct?

Aha, you're talking about properties... yeah, you'll want an updater for 
this :-/

cheers,

Chris

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


More information about the Zope mailing list