[Zope-dev] Re: Renaming a product

2003-06-18 Thread Philipp von Weitershausen
Clemens Robbenhaar wrote: The actual work is the transformation of instances of class A.Foo to class B.Foo; to be on the safe side one would have to copy over all attributes manually. If You want to try a fast and dirty solution, You could try to write the new class into the '__class__' attribute

[Zope-dev] Re: Renaming a product

2003-06-18 Thread Morten W. Petersen
Somebody correct me please, if I'm wrong, but 1. tinkering with __class__ is the only way to do this. 2. you can not tinker with __class__ of an ExtensionClass, i.e. all Persistent objects. It's not easily doable, no. I settled on converting each instance (copying properties) from the old