[Zope] Changing class of objects in the ZODB

2006-06-12 Thread Miles Waller
Hi, Does anyone have a good approach to changing the class of an object already stored in the ZODB? A site is using classes defined and customised in a product on the filesystem, and I want to split the product into two to separate the unmodified vanilla product, and customisations. I

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

2006-06-12 Thread Doyon, Jean-Francois
it with Products.MyProduct.NewClass. J.F. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miles Waller Sent: June 12, 2006 11:58 AM To: zope@zope.org Subject: [Zope] Changing class of objects in the ZODB Hi, Does anyone have a good approach to changing the class of an object already

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