source: main/waeup.sirp/trunk/etc/site.zcml.in @ 9090

Last change on this file since 9090 was 7577, checked in by uli, 13 years ago

Bring new directive into action (although the resulting utility is not
used by real datacenters yet). At least a proof, that we can also
create our own ZCML directives :-)

File size: 1.8 KB
Line 
1<configure xmlns="http://namespaces.zope.org/zope"
2           xmlns:sirp="http://namespaces.waeup.org/sirp"
3           i18n_domain="waeup.sirp">
4
5  <include package="waeup.sirp" />
6  <include package="waeup.sirp" file="mail.zcml" />
7
8  <!-- Where should the datacenter reside by default? -->
9  <sirp:datacenter
10      path="${buildout:directory}/var/datacenter" />
11
12    <configure i18n_domain="waeup.sirp">
13
14
15      <unauthenticatedPrincipal id="zope.anybody"
16                                title="Unauthenticated User" />
17      <unauthenticatedGroup id="zope.Anybody"
18                            title="Unauthenticated Users" />
19      <authenticatedGroup id="zope.Authenticated"
20                        title="Authenticated Users" />
21      <everybodyGroup id="zope.Everybody"
22                      title="All Users" />
23      <principal id="zope.manager"
24                 title="Manager"
25                 login="grok"
26                 password_manager="SHA1"
27                 password="321b9cd3739bd029629243732eb682db005a7541f7509622"
28                 />
29
30      <!-- Replace the following directive if you do not want
31           public access -->
32      <grant permission="zope.app.dublincore.view"
33             principal="zope.Anybody" />
34      <grant permission="zope.View"
35             principal="zope.Authenticated" />
36      <grant permission="zope.app.dublincore.view"
37             principal="zope.Authenticated" />
38      <grant permission="waeup.Public"
39             principal="zope.Everybody" />
40      <grant permission="waeup.Anonymous"
41             principal="zope.Anybody" />
42      <grant permission="waeup.Authenticated"
43             principal="zope.Authenticated" />
44
45      <role id="zope.Manager" title="Site Manager" />
46      <grantAll role="zope.Manager" />
47      <grant role="zope.Manager"
48             principal="zope.manager" />
49   </configure>
50</configure>
Note: See TracBrowser for help on using the repository browser.