source: main/kofacustom.nigeria/trunk/etc/site.zcml.in @ 17586

Last change on this file since 17586 was 17296, checked in by Henrik Bettermann, 20 months ago

Adjust to base package.

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