[Zope] Changing class of objects in the ZODB
Miles Waller
miles at jamkit.com
Mon Jun 12 12:08:57 EDT 2006
To confirm, I *just* want to change the class - attribute values, name
and state information can remain exactly the same.
XML import/export is a good approach which I need to think about a bit
more. On the face of it, the data.fs is well over 1Gb in size after
packing, and so is likely to create some issues in itself, but there may
be ways to make this more straightforward.
Doyon, Jean-Francois wrote:
>Assuming you're not changing attribute values, but *just* the class, I've
>had success with doing an XML export, a find/replace of the class name, and
>a re-import.
>
>The XML is fairly readable, you can just look for example for
>"Products.MyProduct.OldClass" and replace it with
>"Products.MyProduct.NewClass".
>
>J.F.
>
>
More information about the Zope
mailing list