[Zope] Custom ZClasses absent from addmenu after upgrading
Max M
maxm@mxm.dk
Mon, 09 Sep 2002 11:17:31 +0200
pmiller@liverpool.ac.uk wrote:
> I am in the process of upgrading a site on NT from 2.3.3 on one
> machine to 2.5.1 on another. I copied across the data.fs, reinstalled
> a few products and everything seems to be working OK apart from the
> addmenu which stubbornly refuses to list a number of custom ZClasses.
> They list OK in the Control Panel, existing instances still work and I
> can copy/paste to create new ones. Any suggestions much appreciated.
zClasses are the work of the Devil! You have probably changed you
meta_type at some point in your products history.
If you change the meta type of a zClass you have to also change the add
List name, in the zClass' factory to be able to add instances through
the Zmi. That is at least when you have a Python Based ObjectManager
class that uses the ZMI.
But I have also noticed that my custom zClasses didn't show up in the
Zope Management Interface (ZMI) even though I had changed the "add List
name" to the new meta_type.
You can still add them by calling the factory method ie.
manage_addMyProductForm, it's only in the ZMI that they are gone.
It's a bug. I solved it by rewriting to Python products ;-)
You could also read:
http://zope.nipltd.com/public/lists/zope-archive.nsf/47ba74c812dbc5dd8025687f0024bb5f/b23165ebf893f07980256bc700302e7d?OpenDocument&Highlight=0,zClasses,maxm
(one line url)
regards Max M
><evolve>
> >