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

Last change on this file since 17650 was 17295, checked in by Henrik Bettermann, 22 months ago

Adjust to base package.

File size: 3.2 KB
RevLine 
[10765]1<configure xmlns="http://namespaces.zope.org/zope"
[17295]2           xmlns:browser="http://namespaces.zope.org/browser"
[10765]3           xmlns:kofa="http://namespaces.waeup.org/kofa"
[17254]4           xmlns:kofacustomng="http://namespaces.waeup.org/kofacustomng"
[16983]5           i18n_domain="kofacustom.lpng">
[10765]6
[16983]7  <include package="kofacustom.lpng" />
8  <include package="kofacustom.lpng" file="mail.zcml" />
[10765]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
[17254]33  <!-- Where can the paypal config be found -->
34  <kofacustomng:paypalconf
35      path="${buildout:directory}/etc/paypal.conf" />
36
[16983]37    <configure i18n_domain="kofacustom.lpng">
[10765]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"
[14996]50                 password_manager="SSHA"
51                 password="{SSHA}PQQypyPElik2Pi3wM5kO1W78eVCGgdZ8"
[10765]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>
[17295]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       
[10765]84</configure>
Note: See TracBrowser for help on using the repository browser.