[Zope-CMF] Addable object types

J C Lawrence claw@kanga.nu
Tue, 15 Apr 2003 10:45:43 -0700


On 14 Apr 2003 14:01:37 -0400 
Tres Seaver <tseaver@zope.com> wrote:
> 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.

This is perfect.  Thanks.  With a little fiddling WikiPage,
BibliographyEntry and the CMFAlmanac types no longer appear everywhere.

-- 
J C Lawrence                
---------(*)                Satan, oscillate my metallic sonatas. 
claw@kanga.nu               He lived as a devil, eh?		  
http://www.kanga.nu/~claw/  Evil is a name of a foeman, as I live.