[Zope-dev] Python products

richard@bizarsoftware.com.au richard@bizarsoftware.com.au
Thu, 08 Feb 2001 09:04:38 +1100


Andy McKay wrote:
> Take a look at FSPoll which has sort of structure...
> 
> > You may have to do somethign funky if you want to limit the types of
> object that
> > appear in the 'Add' list of your new classes. I have no idea how to do
> that :-S
> 
> I did that in FSPoll just last night. Basically overrode
> filtered_meta_types, and iterated through the tuple of objects, discarding
> ones I dont want, keeping the ones I do. I was hoping to do a how to in the
> next day or so.

If you have a specific set of meta types that are allowed, then set the
all_meta_types attribute on the class.


   Richard

-- 
Richard Jones
richard@bizarsoftware.com.au
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)