summaryrefslogtreecommitdiff
path: root/src/zope/traversing/tests/ftesting.zcml
blob: 3f4fe1bd65ef22ec3122a6a2911d3f2e3ccb75d1 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<configure
   xmlns="http://namespaces.zope.org/zope"
   xmlns:browser="http://namespaces.zope.org/browser"
   i18n_domain="zope"
   package="zope.traversing"
   >

  <include package="zope.browserpage" file="meta.zcml" />
  <include package="zope.component" file="meta.zcml" />
  <include package="zope.publisher" file="meta.zcml" />
  <include package="zope.security" file="meta.zcml" />
  <include package="zope.securitypolicy" file="meta.zcml" />
  <include package="zope.app.publication" file="meta.zcml" />

  <include package="zope.browserresource" />
  <include package="zope.container" />
  <include package="zope.location" />
  <include package="zope.principalregistry" />
  <include package="zope.publisher" />
  <include package="zope.security" />
  <include package="zope.site" />
  <include package="zope.traversing" />

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

  <browser:defaultView name="index.html" />
  <include package="zope.traversing.browser" />

  <browser:page
      for="zope.site.interfaces.IFolder"
      permission="zope.View"
      class="zope.traversing.tests.test_vhosting.MyFolderPage"
      name="index.html" attribute="index"
      />

  <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 -->

  <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>