[Zope-CMF] limiting types to add by role

Dieter Maurer dieter@handshake.de
Thu, 29 Aug 2002 19:18:36 +0200


Hi Chris,

Chris Withers writes:
 > Dieter Maurer wrote:
 > > 
 > > For me, it looks like
 > > 
 > >     utils.ContentInit( 'WebCMS Inhalte'
 > >                      , content_types=WebCMSClasses
 > >                      , permission=EditHaufeContent
 > >                      , extra_constructors=WebCMSConstructors
 > >                      , fti=Portal.factory_type_information
 > >                      ).initialize( context )
 > > 
 > >     utils.ContentInit( 'Member Inhalte'
 > >                      , content_types=MemberContentClasses
 > >                      , permission=AddPortalContent
 > >                      , extra_constructors=MemberContentConstructors
 > >                      , fti=Portal.factory_type_information
 > >                      ).initialize( context )
 > 
 > Where do these calls live?

Quoting my message ;-)

 > By default, all content types are protected by the same permission
 > (this is set up by the "ContentInit" in "__init__.py").

Hopefully, you will not ask "which __init__.py": the one that sets
up your portal product...


Dieter