summaryrefslogtreecommitdiff
path: root/src/zope/traversing/tests/ftesting.zcml
blob: 07bba57aa615508dad8391239fc5c6322102686f (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<configure
   xmlns="http://namespaces.zope.org/zope"
   xmlns:browser="http://namespaces.zope.org/browser"
   i18n_domain="zope"
   package="zope.traversing"
   >

  <!-- This file is the equivalent of site.zcml and it is -->
  <!-- used for functional testing setup -->

  <include package="zope.app.zcmlfiles" />

  <browser:page
      name="index.html"
      for="zope.traversing.tests.test_vhosting.MyPageTemplate"
      class="zope.traversing.tests.test_vhosting.MyPageEval"
      attribute="index"
      permission="zope.View"
      />

  <class class="zope.traversing.tests.test_vhosting.MyPageTemplate">
    <factory
        id="zope.traversing.tests.test_vhosting.MyPageTemplate"
        />
    <require
        permission="zope.View"
        attributes="__call__ render"
        />
  </class>

  <!-- Principals -->

  <unauthenticatedPrincipal
      id="zope.anybody"
      title="Unauthenticated User" />


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

  <securityPolicy
    component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy" />

  <role id="zope.Anonymous" title="Everybody"
                 description="All users have this role implicitly" />

  <!-- Replace the following directive if you don't want public access -->
  <grant permission="zope.View"
                  role="zope.Anonymous" />


</configure>