ZCML File
configure.zcml

<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:apidoc="http://namespaces.zope.org/apidoc"
    xmlns:zcml="http://namespaces.zope.org/zcml"
    i18n_domain="zope"
    >
<adapter
    factory=".rolepermission.AnnotationRolePermissionManager"
    provides=".interfaces.IRolePermissionManager"
    for="zope.annotation.interfaces.IAnnotatable"
    trusted="true"
    />
<class
    class=".rolepermission.AnnotationRolePermissionManager"
    >
<allow
    interface=".interfaces.IRolePermissionMap"
    />
</class>
<adapter
    factory=".principalrole.AnnotationPrincipalRoleManager"
    provides=".interfaces.IPrincipalRoleManager"
    for="zope.annotation.interfaces.IAnnotatable"
    trusted="true"
    />
<class
    class=".principalrole.AnnotationPrincipalRoleManager"
    >
<allow
    interface=".interfaces.IPrincipalRoleMap"
    />
</class>
<adapter
    factory=".principalpermission.AnnotationPrincipalPermissionManager"
    provides=".interfaces.IPrincipalPermissionManager"
    for="zope.annotation.interfaces.IAnnotatable"
    trusted="true"
    />
<class
    class=".principalpermission.AnnotationPrincipalPermissionManager"
    >
<allow
    interface=".interfaces.IPrincipalPermissionMap"
    />
</class>
<adapter
    factory=".grantinfo.AnnotationGrantInfo"
    provides=".interfaces.IGrantInfo"
    for="zope.annotation.interfaces.IAnnotatable"
    />
<class
    class=".role.LocalRole"
    >
<factory
    id="zope.security.role.Role"
    />
<require
    permission="zope.Security"
    interface=".interfaces.IRole"
    set_schema=".interfaces.IRole"
    />
</class>
<subscriber
    handler=".role.setIdOnActivation"
    for="
       .interfaces.IRole
       zope.component.interfaces.IRegistered
       "

    />
<subscriber
    handler=".role.unsetIdOnDeactivation"
    for="
       .interfaces.IRole
       zope.component.interfaces.IUnregistered
       "

    />
<utility
    component=".vocabulary.RoleIdsVocabulary"
    name="Role Ids"
    />
<configure
    zcml:condition="have apidoc"
    >
<apidoc:bookchapter
    id="zopepolicy"
    title="Default Security Policy"
    doc_path="zopepolicy.txt"
    parent="security"
    />
</configure>
</configure>