[Zope] Restrict object list in folderish product, it works, b ut how?

Max Møller Rasmussen maxm@normik.dk
Mon, 25 Jun 2001 14:58:28 +0200


> From: Rene Pijlman [mailto:rpijlman@wanadoo.nl]

> Restrict the available objects list of a Python-based 
> folderish product:
> http://www.zope.org/Members/rpijlman/FolderishProduct/Restrict
> AvailableObjec
> ts

>From the Zope Developers guide:

http://www.zope.org/Documentation/ZDG/Products.dtml

"If you wish to control which types of objects can be contained by instances
of your product you can set the meta_types class attribute. This attribute
should be a tuple of meta_types. This keeps other types of objects from
being created in or pasted into instances of your product. The meta_types
attribute is mostly useful when you are creating specialized container
products."

This would probably be easier...

regards Max M