RE: [Zope] Changing class of objects in the ZODB

2006-06-12 Thread Doyon, Jean-Francois
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

Re: [Zope] Changing class of objects in the ZODB

2006-06-12 Thread Miles Waller
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

Re: [Zope] Changing class of objects in the ZODB

2006-06-12 Thread Dieter Maurer
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