creating a ZClass that won't show up in normal folder add list.
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
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 ------------------------------------------
Martijn Pieters wrote How can I get it so that the sub-object isn't listed in the normal management interface 'add' list? I've tried: Create the object inside the methods tab of the container ZClass. It will automatically be listed in it's add-items list.
Ah - this does work. It confused me, as the subobjects weren't listed in the list in the Subobjects management tab. Anthony
participants (2)
-
Anthony Baxter -
Martijn Pieters