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

Martijn Pieters mj@antraciet.nl
Mon, 21 Jun 1999 12:45:39 +0200


At 12:36 21/06/99 , Anthony Baxter wrote:
>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

Create the object inside the methods tab of the container ZClass. It will 
automatically be listed in it's add-items list.

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------