[Zope] change ClassID of instances

Dieter Maurer dieter@handshake.de
Sat, 16 Mar 2002 22:34:12 +0100


Marcus Schopen writes:
 > is there a possibility to change the ClassID of any instance of one
 > Class?
 > ...
 > Log says:
 > 
 > PROBLEM(100) ZODB Could not import class 'HTMLDocument' from module
 > '*WU8K7Rxn7QpPWRZ0rVuizg=='
 > 
 > [ this is the Class ID on the other ZOPE ]
 > 
 > The ClassID on my ZOPE:
 > 'HTMLDocument' from module 'Products.HTMLDocument.HTMLDocument'
Apparently, you want to keep the data but interpete it through
a different class. Usually, this will cause chaos...

But you may try the following (on a copy of your Data.fs!):

  Open "Data.fs" in a text editor.

  Replace all "*WU....==" by "Products.HTMLDocument.HTMLDocument".

  Carefully check that everything works fine.
  There is a high chance that you get further errors.


Dieter