source: main/waeup.kofa/branches/uli-zc-async/etc/site.zcml.in @ 9105

Last change on this file since 9105 was 9105, checked in by uli, 12 years ago

Register job container installer on startup and give more hints about
what's going on here.

File size: 2.7 KB
Line 
1<configure xmlns="http://namespaces.zope.org/zope"
2           xmlns:kofa="http://namespaces.waeup.org/kofa"
3           i18n_domain="waeup.kofa">
4
5  <include package="waeup.kofa" />
6  <include package="waeup.kofa" file="mail.zcml" />
7  <!-- install job container
8
9       install a job container for asynchronous jobs. Pick one of the
10       two possibilites: 'single' for installation in the one big ZODB
11       or 'multidb' for setup with a dedicated ZODB for job handling.
12  -->
13  <!-- include package="waeup.kofa" file="async_single.zcml" / -->
14  <include package="waeup.kofa" file="async_multidb.zcml" />
15
16  <!-- install dispatcher and other needed async components
17
18       install other needed components for asynchronous jobs. Pick one
19       of the two possibilities: 'basic_dispatcher' for single ZODB
20       setup, 'multidb_dispatcher' for setup with a dedicated ZODB for
21       job handling. Make sure the setting matches the setting picked
22       above. -->
23  <!-- include package="zc.async" file="basic_dispatcher_policy.zcml" / -->
24  <include package="zc.async" file="multidb_dispatcher_policy.zcml" />
25
26  <!-- Where should the datacenter reside by default? -->
27  <kofa:datacenter
28      path="${buildout:directory}/var/datacenter" />
29
30    <configure i18n_domain="waeup.kofa">
31
32
33      <unauthenticatedPrincipal id="zope.anybody"
34                                title="Unauthenticated User" />
35      <unauthenticatedGroup id="zope.Anybody"
36                            title="Unauthenticated Users" />
37      <authenticatedGroup id="zope.Authenticated"
38                        title="Authenticated Users" />
39      <everybodyGroup id="zope.Everybody"
40                      title="All Users" />
41      <principal id="zope.manager"
42                 title="Manager"
43                 login="grok"
44                 password_manager="SHA1"
45                 password="321b9cd3739bd029629243732eb682db005a7541f7509622"
46                 />
47
48      <!-- Replace the following directive if you do not want
49           public access -->
50      <grant permission="zope.app.dublincore.view"
51             principal="zope.Anybody" />
52      <grant permission="zope.View"
53             principal="zope.Authenticated" />
54      <grant permission="zope.app.dublincore.view"
55             principal="zope.Authenticated" />
56      <grant permission="waeup.Public"
57             principal="zope.Everybody" />
58      <grant permission="waeup.Anonymous"
59             principal="zope.Anybody" />
60      <grant permission="waeup.Authenticated"
61             principal="zope.Authenticated" />
62
63      <role id="zope.Manager" title="Site Manager" />
64      <grantAll role="zope.Manager" />
65      <grant role="zope.Manager"
66             principal="zope.manager" />
67   </configure>
68</configure>
Note: See TracBrowser for help on using the repository browser.