source: main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/ftesting.zcml

Last change on this file was 17296, checked in by Henrik Bettermann, 22 months ago

Adjust to base package.

File size: 2.3 KB
Line 
1<configure
2   xmlns="http://namespaces.zope.org/zope"
3   xmlns:browser="http://namespaces.zope.org/browser"
4   xmlns:kofa="http://namespaces.waeup.org/kofa"
5   xmlns:kofacustomng="http://namespaces.waeup.org/kofacustomng"
6   i18n_domain="kofacustom.nigeria"
7   package="kofacustom.nigeria"
8   >
9
10  <include package="grok" />
11  <includeOverrides package="kofacustom.nigeria" />
12  <include package="kofacustom.nigeria" file="mail.zcml" />
13
14  <!-- Where should the datacenter reside by default?
15
16       The path is relative to the `package` defined in top
17       `configure` directive.
18  -->
19  <kofa:datacenter
20      path="../../../parts/test/datacenter" />
21
22  <!-- Where can the paypal config be found -->
23  <kofacustomng:paypalconf
24      path="../../../etc/paypal-testing.conf" />
25
26
27  <!-- Typical functional testing security setup -->
28  <securityPolicy
29      component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy"
30      />
31
32
33  <unauthenticatedPrincipal
34      id="zope.anybody"
35      title="Unauthenticated User"
36      />
37  <unauthenticatedGroup
38      id="zope.Anybody"
39      title="Unauthenticated Users"
40      />
41  <authenticatedGroup
42      id="zope.Authenticated"
43      title="Authenticated Users"
44      />
45  <everybodyGroup
46      id="zope.Everybody"
47      title="All Users"
48      />
49
50
51  <!-- grant
52      permission="zope.View"
53      principal="zope.Anybody"
54      / -->
55
56  <grant
57      permission="zope.app.dublincore.view"
58      principal="zope.Anybody" />
59  <grant
60      permission="zope.View"
61      principal="zope.Authenticated"
62      />
63  <grant
64      permission="zope.app.dublincore.view"
65      principal="zope.Authenticated"
66      />
67  <grant
68      permission="waeup.Public"
69      principal="zope.Everybody"
70      />
71  <grant
72      permission="waeup.Anonymous"
73      principal="zope.Anybody"
74      />
75
76  <principal
77      id="zope.mgr"
78      title="Manager"
79      login="mgr"
80      password="mgrpw"
81      />
82
83  <role
84      id="zope.Manager"
85      title="Site Manager"
86      />
87
88  <grantAll
89      role="zope.Manager"
90      />
91
92  <grant
93      role="zope.Manager"
94      principal="zope.mgr"
95      />
96
97
98   <!-- session -->
99   <browser:beakerSession
100        key="waeup.kofa.session.id"
101        secret="KofaRocks"
102        timeout="3600"
103        type="cookie"
104        validate_key="thisMightBeChanged"
105        />
106
107</configure>
Note: See TracBrowser for help on using the repository browser.