[Zope3-Users] updating objects in ZODB

Thierry FLORAC thierry.florac at onf.fr
Fri Feb 10 05:31:45 EST 2006


On Fri, 2006-02-10 at 11:15 +0100, Lorenzo Gil Sanchez wrote:

> How do I update the old objects and add the new attribute to them? I can 
> provide a default value for this attribute if that helps.
> I know this is a common issue with application updates. I also know that 
> during the development phase the best thing I can do is remove the 
> Data.fs file and start again and that's what I'm currently doing. But 
> I'm worried about installing the application in the client machines and 
> two month later needing to add more fields to my content-types. If I 
> understand correctly one of the advantages of Zope3 is the support for 
> always-changing-applications. So how does it work in this particular 
> situation?


I think that Zope3 handles this problem through the concept of
"generations".
Documentation and interfaces are available in package
"zope.app.generations".

  Thierry

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20060210/daf691bc/attachment.htm


More information about the Zope3-users mailing list