ZCML File
configure.zcml

<zope:configure
    xmlns="http://namespaces.zope.org/browser"
    xmlns:zope="http://namespaces.zope.org/zope"
    i18n_domain="zope"
    >
<zope:view
    for="
       zope.schema.interfaces.IChoice
       zope.securitypolicy.interfaces.IGrantVocabulary
       "

    permission="zope.Public"
    provides="zope.app.form.interfaces.IInputWidget"
    type="zope.publisher.interfaces.browser.IBrowserRequest"
    factory="zope.app.securitypolicy.browser.granting.GrantWidget"
    />
<addform
    name="addRole.html"
    schema="zope.securitypolicy.interfaces.IRole"
    permission="zope.Security"
    label="New Role"
    fields="title description"
    content_factory="zope.securitypolicy.role.LocalRole"
    arguments="title"
    keyword_arguments="description"
    />
<editform
    name="edit.html"
    schema="zope.securitypolicy.interfaces.IRole"
    permission="zope.ManageContent"
    menu="zmi_views"
    title="Edit"
    />
<defaultView
    name="edit.html"
    for="zope.securitypolicy.interfaces.IRole"
    />
<addMenuItem
    title="Role"
    description="A Security Role"
    permission="zope.Security"
    class="zope.securitypolicy.role.LocalRole"
    view="addRole.html"
    />
<pages
    class=".rolepermissionview.RolePermissionView"
    for="zope.app.component.interfaces.ILocalSiteManager"
    permission="zope.Security"
    >
<page
    name="AllRolePermissions.html"
    template="manage_access.pt"
    menu="zmi_actions"
    title="Role-Permissions"
    />
<page
    name="RolePermissions.html"
    template="manage_roleform.pt"
    />
<page
    name="RolesWithPermission.html"
    template="manage_permissionform.pt"
    />
</pages>
<zope:class
    class=".rolepermissionview.PermissionRoles"
    >
<zope:require
    permission="zope.Security"
    attributes="roles rolesInfo id title description"
    />
</zope:class>
<zope:class
    class=".rolepermissionview.RolePermissions"
    >
<zope:require
    permission="zope.Security"
    attributes="permissions permissionsInfo id title description"
    />
</zope:class>
<page
    class=".granting.Granting"
    for="zope.annotation.interfaces.IAnnotatable"
    permission="zope.Security"
    name="grant.html"
    template="granting.pt"
    menu="zmi_actions"
    title="Grant"
    />
</zope:configure>