[ZODB-Dev] Re: Migrating classes in ZODB 3.5.1

George Lee georgeleejr at gmail.com
Sat Nov 26 22:03:04 EST 2005


Lennart Regebro <regebro <at> gmail.com> writes:

> 
> This may not help, but anyway. :)
> 
>  In Zope, I did this: I moved the class to the module I wanted it. I
> also kept a "dummy class" in the old place like so:
> 
> from newplace import class
> 
> so that the old objects worked. Then I wrote a script to go through
> the ZODB and recreate every object. I then could remove the dummy
> import.
> 
> Kaching!
> _______________________________________________
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
> 
> ZODB-Dev mailing list  -  ZODB-Dev <at> zope.org
> http://mail.zope.org/mailman/listinfo/zodb-dev
> 
> 



Hey -- I do work with Plone but not much with ZODB directly, and am running into
this problem as I migrate some of my classes to different modules.

Lennart, do you mind sharing the code for your script? I don't know how much
persistence, committing transactions, and other strange ZODB things Plone people
can hide from, affect how to do it.

(Or -- is it possible to just recreate objects through Plone itself, rather than
through the ZODB? Or on the flip side, does having a Plone and not just a ZODB
object mean it's more complicated to recreate the object because there's even
more information about the object that needs to be recreated?)

Peace,
George



More information about the ZODB-Dev mailing list