summaryrefslogtreecommitdiff
path: root/src/zope/security/tests/redefineperms.zcml
blob: cf5d2fb384134d40995305fcf3eaf93a8526665d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:meta="http://namespaces.zope.org/meta"
    i18n_domain="zope"
    >

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

  <meta:directive
      name="dummy"
      namespace="http://namespaces.zope.org/zope"
      schema=".test_zcml_functest.IDummy"
      handler=".test_zcml_functest.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>