source: main/kofacustom.lpng/trunk/etc/site.zcml.in @ 17616

Last change on this file since 17616 was 17295, checked in by Henrik Bettermann, 2 years ago

Adjust to base package.

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