[Zope-CMF] Add CMF Sites

Yuppie schubbe@web.de
Fri, 18 Oct 2002 00:17:13 +0200


Mark McEahern wrote:
> I should gander at the code for synthesizing the permission.  From the
> results, it looks like it does this:
> 
>   CMFSite --> Add CMF Sites
>               ^^^^   ^    ^
> 
> Does that mean, fer instance, it would do this:
> 
>   CMFPhenomenon --> Add CMF Phenomenons

Depends on the meta_type.

CMFDefault/Portal.py:

00040:    class CMFSite ( PortalObjectBase
00041:                  , DefaultDublinCoreImpl
00042:                  ):
00047:        meta_type = 'CMF Site'


App/ProductContext.py:

00119:            # Constructor permission setup
00120:            if permission is None:
00121:                permission="Add %ss" % (meta_type or 
instance_class.meta_type)


HTH,

Yuppie