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
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
Miles Waller wrote at 2006-6-12 16:58 +0100:
Does anyone have a good approach to changing the class of an object
already stored in the ZODB?
This is *very* difficult.
The main problem is that the class is usually coded (for efficiency
reasons) in the
persistent references to an object. As soon