[Zope-dev] creating a ZClass that won't show up in normal folder add list.

Anthony Baxter anthony@interlink.com.au
Mon, 21 Jun 1999 20:36:15 +1000


I'm trying to create a couple of objects - one's a container, the other 
an object that only makes sense inside one of the containers.

How can I get it so that the sub-object isn't listed in the normal 
management interface 'add' list? I've tried:

 - not putting an entry in the 'add list entry' field of the factory
     -> end up with a blank entry in the menu - not what's intended.
 - not making a factory object
     -> can't create the subobjects, get an AttributeError for _setObject.

anyone? 

On a related note, should I be able to make a single product, with multiple
ZClasses and ZFactories inside it? Anything that will break?

Anthony