[Zope-CMF] Addable object types

Tres Seaver tseaver@zope.com
14 Apr 2003 14:01:37 -0400


On Mon, 2003-04-14 at 13:04, J C Lawrence wrote:
> 
> Currently all CMF object types are by default addable everywhere.  What
> is necessary o make a CMF product which can only be added in specific
> places or under specific folderish types?  Specifically what I'm looking
> for is the list returned from allowedContentTypes() to __NOT__ contain
> those types every where except in their allowed locations.

The 'global_allow' property of the type information object covers this
case (its label, "Implicitly addable?" is perhaps misleading).  If  you
uncheck this value, the type will only be addable in containers which
explicitly allow it.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com