source: main/waeup.kofa/trunk/etc/site.zcml.in @ 17476

Last change on this file since 17476 was 17280, checked in by uli, 22 months ago

Upgrade dolmen.beaker dependency. Requires new buildout run.

File size: 3.5 KB
Line 
1<configure xmlns="http://namespaces.zope.org/zope"
2           xmlns:browser="http://namespaces.zope.org/browser"
3           xmlns:kofa="http://namespaces.waeup.org/kofa"
4           i18n_domain="${kofa_params:devel_pkg}">
5
6  <include package="${kofa_params:devel_pkg}" />
7  <include package="${kofa_params:devel_pkg}" file="mail.zcml" />
8  <!-- install job container
9
10       install a job container for asynchronous jobs. Pick one of the
11       two possibilites: 'single' for installation in the one big ZODB
12       or 'multidb' for setup with a dedicated ZODB for job handling.
13  -->
14  <!-- include package="waeup.kofa" file="async_single.zcml" / -->
15  <include package="waeup.kofa" file="async_multidb.zcml" />
16
17  <!-- install dispatcher and other needed async components
18
19       install other needed components for asynchronous jobs. Pick one
20       of the two possibilities: 'basic_dispatcher' for single ZODB
21       setup, 'multidb_dispatcher' for setup with a dedicated ZODB for
22       job handling. Make sure the setting matches the setting picked
23       above. -->
24  <!-- include package="zc.async" file="basic_dispatcher_policy.zcml" / -->
25  <include package="zc.async" file="multidb_dispatcher_policy.zcml" />
26
27  <!-- Where should the datacenter reside by default? -->
28  <kofa:datacenter
29      path="${buildout:directory}/var/datacenter" />
30
31    <configure i18n_domain="${kofa_params:devel_pkg}">
32
33
34      <unauthenticatedPrincipal id="zope.anybody"
35                                title="Unauthenticated User" />
36      <unauthenticatedGroup id="zope.Anybody"
37                            title="Unauthenticated Users" />
38      <authenticatedGroup id="zope.Authenticated"
39                        title="Authenticated Users" />
40      <everybodyGroup id="zope.Everybody"
41                      title="All Users" />
42      <principal id="zope.manager"
43                 title="Manager"
44                 login="grok"
45                 password_manager="SHA1"
46                 password="321b9cd3739bd029629243732eb682db005a7541f7509622"
47                 />
48
49      <!-- XMLRPC user for demo and testing
50           Plaintext password is xmlrpcuser1
51           Don't use it in real deployment -->
52      <principal id="zope.xmlrpcuser1"
53                 title="XMLRPC User 1"
54                 login="xmlrpcuser1"
55                 password="{SSHA}ZaL4-UiwmSu6AbLYY-yCS_8vtKpH5Hc6"
56                 password_manager="SSHA"
57                 />
58
59      <grant role="waeup.xmlrpcusers1"
60             principal="zope.xmlrpcuser1" />
61
62
63      <!-- Replace the following directive if you do not want
64           public access -->
65      <grant permission="zope.app.dublincore.view"
66             principal="zope.Anybody" />
67      <grant permission="zope.View"
68             principal="zope.Authenticated" />
69      <grant permission="zope.app.dublincore.view"
70             principal="zope.Authenticated" />
71      <grant permission="waeup.Public"
72             principal="zope.Everybody" />
73      <grant permission="waeup.Anonymous"
74             principal="zope.Anybody" />
75      <grant permission="waeup.Authenticated"
76             principal="zope.Authenticated" />
77
78      <role id="zope.Manager" title="Site Manager" />
79      <grantAll role="zope.Manager" />
80      <grant role="zope.Manager"
81             principal="zope.manager" />
82   </configure>
83
84   <!-- session -->
85   <browser:beakerSession
86        key="waeup.kofa.session.id"
87        secret="KofaRocks"
88        timeout="3600"
89        type="cookie"
90        validate_key="thisMightBeChanged"
91        />
92
93</configure>
Note: See TracBrowser for help on using the repository browser.