[Zope] hide nested classes in a python products -- how?

Tobias Herp THerp@apriori.de
Mon, 11 Nov 2002 19:14:20 +0100


Hi,

I'm re-implementing my nested ZClass product as a python product.

The ZClass product contains a class 'portal' which is the only one whic=
h
should be add-able to any ordinary folder, and a cascade of further cla=
sses
which can be added inside the portal.

In my classes I'm able to restrict the list of contained classes via
_allowed_meta_types. But in an ordinary Folder, any object can be added=
.

Is it possible to prevent the further classes to show up in the normal
list, so that only 'portal's can be added to a normal Folder object? Or=
 is
the only solution to throw an exception?

tia,

Tobias
--
(sorry for any unfriendly footer added automatically against my wishes.=
..
please ignore it!)


Diese E-Mail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder
diese E-Mail irrt=FCmlich erhalten haben, informieren Sie bitte
sofort den Absender und vernichten Sie diese Mail. Das un-
erlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail
ist nicht gestattet.

This e-mail may contain confidential and/or privileged
information. If you are not the intended recipient (or have
received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorised copying,
disclosure or distribution of the material in this e-mail is
strictly forbidden.=