[Zope] Changing Zclass Base Classes

Steve Alexander steve@cat-box.net
Wed, 03 May 2000 12:41:25 +0100


julio dinis wrote:
> 
> >Hmm... When you say "they are somehow broken", you mean they show up >in
> >the
> >management interface as broken objects?
> 
> No, they are ok.
> 
> >How did you change the base classes? Did you use the
> >hold-on-to-the-seat-of-your-pants-unsupported method, or did you >create
> >new
> >a new ZClass?
> 
> I renamed my old class for class_temp and created new ones
> with same name, same properties, etc.
> 
> I dont no whats wrong :(

Look at your ZClass in the management view. Look under the "basic" tab.

You should find the field "class id". Its value will be a string such as
"2nBsaF/GgaN176QFvINZIw==".

This value links instances of the ZClass to the ZClass definition. It
could be that you didn't alter this property in your new ZClass.

Would that alone work? I don't know -- never tried it!

Take a look at http://www.zope.org/Members/AlexR/ChangingBaseClasses for
the recommended unofficial way to do it.

--
Steve Alexander
Software Engineer
Cat-Box limited