[Zope3-checkins] CVS: Zope3/src/zope/app/security/tests - redefineperms.zcml:1.1

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Mar 20 14:52:41 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/security/tests
In directory cvs.zope.org:/tmp/cvs-serv17276/src/zope/app/security/tests

Added Files:
	redefineperms.zcml 
Log Message:


Test cases for permission redefinition ZCML directives.




=== Added File Zope3/src/zope/app/security/tests/redefineperms.zcml ===
<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:meta="http://namespaces.zope.org/meta"
    i18n_domain="zope"
    >

  <include package="zope.app.security" file="meta.zcml" />

  <meta:directive
      name="dummy"
      namespace="http://namespaces.zope.org/zope"
      schema=".test_directives.IDummy"
      handler=".test_directives.dummy" />

  <permission
      id="zope.View"
      title="[view-permission] View"
      />

  <permission
      id="zope.Security"
      title="[change-security-settings-permission] Change security settings"
      />

  <meta:redefinePermission
      from="zope.View"
      to="zope.Security"
      />

  <dummy
      perm="zope.View" />

</configure>




More information about the Zope3-Checkins mailing list