~landscape/zope3/ztk-1.1.3

« back to all changes in this revision

Viewing changes to src/zope/app/session/ftesting.zcml

  • Committer: Sidnei da Silva
  • Date: 2010-07-05 21:07:01 UTC
  • Revision ID: sidnei.da.silva@canonical.com-20100705210701-zmqhqrbzad1mhzsl
- Reduce deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<configure
2
 
   xmlns="http://namespaces.zope.org/zope"
3
 
   xmlns:meta="http://namespaces.zope.org/meta"
4
 
   i18n_domain="zope"
5
 
   package="zope.app.session"
6
 
   >
7
 
 
8
 
  <!-- This file is the equivalent of site.zcml and it is -->
9
 
  <!-- used for functional testing setup -->
10
 
 
11
 
  <include package="zope.securitypolicy" file="meta.zcml" />
12
 
 
13
 
  <include package="zope.app.zcmlfiles" />
14
 
 
15
 
  <include package="zope.session" />
16
 
 
17
 
  <include package="zope.app.authentication" />
18
 
  <include package="zope.app.zptpage"/>
19
 
  <include package="zope.app.securitypolicy" />
20
 
  <include package="zope.app.session" />
21
 
 
22
 
  <securityPolicy
23
 
      component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
24
 
 
25
 
  <role id="zope.Anonymous" title="Everybody"
26
 
                 description="All users have this role implicitly" />
27
 
  <role id="zope.Manager" title="Site Manager" />
28
 
 
29
 
  <!-- Replace the following directive if you don't want public access -->
30
 
  <grant permission="zope.View"
31
 
                  role="zope.Anonymous" />
32
 
 
33
 
  <grantAll role="zope.Manager" />
34
 
 
35
 
  <!-- Principals -->
36
 
 
37
 
  <unauthenticatedPrincipal
38
 
      id="zope.anybody"
39
 
      title="Unauthenticated User" />
40
 
 
41
 
  <!-- Principal that tests generally run as -->
42
 
  <principal
43
 
      id="zope.mgr"
44
 
      title="Manager"
45
 
      login="mgr"
46
 
      password="mgrpw" />
47
 
 
48
 
  <!-- Bootstrap principal used to make local grant to the principal above -->
49
 
  <principal
50
 
      id="zope.globalmgr"
51
 
      title="Manager"
52
 
      login="globalmgr"
53
 
      password="globalmgrpw" />
54
 
 
55
 
  <grant role="zope.Manager" principal="zope.globalmgr" />
56
 
 
57
 
</configure>