[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - security-meta.zcml:1.1.2.1

Jim Fulton jim@zope.com
Tue, 12 Feb 2002 19:50:11 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv15342/Zope/App/Security

Added Files:
      Tag: Zope-3x-branch
	security-meta.zcml 
Log Message:
decomposed zope configuration into separate package configs

=== Added File Zope3/lib/python/Zope/App/Security/security-meta.zcml ===
<zopeConfigure xmlns='http://namespaces.zope.org/zope'>

  <!-- Zope.App.Security -->
  <directives namespace="http://namespaces.zope.org/security">
    <directive name="permission"
               attributes="permission_id, title, description"
               handler="Zope.App.Security.metaConfigure.definePermission" />
    <directive name="role"
               attributes="role_id, title, description"
               handler="Zope.App.Security.metaConfigure.defineRole" />
    <directive name="protectClass"
               attributes="name, permission_id, interface, method, methods"
       handler="Zope.App.Security.protectClass.">
      <subdirective name="protect"
                    attributes="permission_id, interface, method, methods" />
      <subdirective name="instances" attributes="permission_id" />
      </directive>
    <directive name="publicClass" attributes="name, interface, method, methods"
               handler="Zope.App.Security.publicClass." />
    <directive name="defaultPolicy" attributes="name"
       handler="Zope.App.Security.metaConfigure.defaultPolicy" />
    <directive name="principal" attributes="principal_id, title, description"
       handler="Zope.App.Security.metaConfigure.principal" />
    <directive name="defaultPrincipal" 
               attributes="principal_id, title, description"
       handler="Zope.App.Security.metaConfigure.defaultPrincipal" />
    <directive name="grantPermissionToRole" attributes="permission_id, role_id"
       handler="Zope.App.Security.metaConfigure.grantPermissionToRole" />
    <directive
       name="grantPermissionToPrincipal"
       attributes="permission_id, principal_id"
       handler="Zope.App.Security.metaConfigure.grantPermissionToPrincipal" />
    <directive name="assignRoleToPrincipal" attributes="role_id, principal_id"
       handler="Zope.App.Security.metaConfigure.assignRoleToPrincipal" />
  </directives>

</zopeConfigure>