[ZODB-Dev] Coping with Class Changes

Dieter Maurer dieter at handshake.de
Mon Sep 4 14:29:41 EDT 2006


Chris S wrote at 2006-9-3 15:40 -0400:
>Is there a standard procedure for dealing with fundamental changes to
>classes? For instance, how do you make a ZODB cope with a class being
>renamed, or being placed in a different location? How will it know
>that oldmod.myclass == newmod.myclass?

It does not.

You can use so called "module aliases" to partially cope
with module relocation and "class aliases" to cope with class renaming.
Otherwise, you have to use migration scripts that physically
recreate the objects (and the references to it!) with the new classes.



-- 
Dieter


More information about the ZODB-Dev mailing list