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/47ba74c812dbc5dd8025687... (one line url) regards Max M
<evolve>