source: main/waeup.sirp/trunk/src/waeup/sirp/ftesting.zcml @ 10222

Last change on this file since 10222 was 7582, checked in by uli, 13 years ago

Use a different path for datacenter in tests than the production path.

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