source: main/waeup.kofa/trunk/src/waeup/kofa/ftesting.zcml @ 14008

Last change on this file since 14008 was 9855, checked in by Henrik Bettermann, 12 years ago

Grant permission waeup.Authenticated also in tests.

  • Property svn:style set to native
File size: 1.8 KB
RevLine 
[3521]1<configure
2   xmlns="http://namespaces.zope.org/zope"
[7811]3   xmlns:kofa="http://namespaces.waeup.org/kofa"
4   i18n_domain="waeup.kofa"
5   package="waeup.kofa"
[3521]6   >
7
8  <include package="grok" />
[7811]9  <includeOverrides package="waeup.kofa" />
10  <include package="waeup.kofa" file="mail.zcml" />
[9217]11  <include package="waeup.kofa" file="async_single.zcml" />
[3521]12
[7580]13  <!-- Where should the datacenter reside by default? -->
[7811]14  <kofa:datacenter
[7582]15      path="../../../parts/test/datacenter" />
[7580]16
[3521]17  <!-- Typical functional testing security setup -->
18  <securityPolicy
[4789]19      component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy"
[3521]20      />
21
22  <unauthenticatedPrincipal
23      id="zope.anybody"
24      title="Unauthenticated User"
25      />
[4789]26  <unauthenticatedGroup id="zope.Anybody"
27      title="Unauthenticated Users" />
28  <authenticatedGroup id="zope.Authenticated"
29      title="Authenticated Users" />
30  <everybodyGroup id="zope.Everybody"
31      title="All Users" />
32
[5499]33  <!-- grant
[3521]34      permission="zope.View"
[4789]35      principal="zope.Anybody"
[5499]36      / -->
[4789]37  <grant
38      permission="zope.app.dublincore.view"
39      principal="zope.Anybody" />
40  <grant
41      permission="zope.View"
42      principal="zope.Authenticated"
43      />
44  <grant
45      permission="zope.app.dublincore.view"
46      principal="zope.Authenticated"
47      />
48  <grant
49      permission="waeup.Public"
50      principal="zope.Everybody"
51      />
[5499]52  <grant
53      permission="waeup.Anonymous"
54      principal="zope.Anybody"
55      />
[9855]56  <grant
57      permission="waeup.Authenticated"
58      principal="zope.Authenticated" />
[3521]59
[5499]60
[3521]61  <principal
62      id="zope.mgr"
63      title="Manager"
64      login="mgr"
65      password="mgrpw"
66      />
67
68  <role id="zope.Manager" title="Site Manager" />
69  <grantAll role="zope.Manager" />
70  <grant role="zope.Manager" principal="zope.mgr" />
71
72</configure>
Note: See TracBrowser for help on using the repository browser.