[Zope-dev] Allowing only specific meta_types to be addable to my product

Stacy Roberts Ladnier Stacy.Roberts@noaa.gov
Wed, 18 Dec 2002 12:00:56 -0600


This is a multi-part message in MIME format.
--------------C17A6E929D7EC08BE9872D42
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have created a Product made up of hundreds of classes. Each class has
restrictions that should only allow a certain few meta_types to be
added. I have tried every method I can find to do this, without luck. I
know you can restrict this in a ZClass by defining the addable
subobjects. However, I cannot determine how to do this in the python
class. Only those meta_types allowed should appear in the Add Drop down
list.

Thanks in advance,
Stacy

--------------C17A6E929D7EC08BE9872D42
Content-Type: text/x-vcard; charset=us-ascii;
 name="Stacy.Ladnier.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Stacy Ladnier
Content-Disposition: attachment;
 filename="Stacy.Ladnier.vcf"

begin:vcard 
n:Ladnier;Stacy
tel;work:228-688-1878
x-mozilla-html:FALSE
org:Anteon/NCDDC
adr:;;;Stennis Space Center;MS;;
version:2.1
email;internet:Stacy.Ladnier@noaa.gov
title:Software Engineer
fn:Stacy Ladnier, SCJP2, SCJD2
end:vcard

--------------C17A6E929D7EC08BE9872D42--