source: main/waeup.ikoba/trunk/etc/site.zcml.in @ 16447

Last change on this file since 16447 was 12060, checked in by uli, 10 years ago

Merge changes from uli-payments back into trunk.

File size: 3.3 KB
RevLine 
[5493]1<configure xmlns="http://namespaces.zope.org/zope"
[11949]2           xmlns:ikoba="http://namespaces.waeup.org/ikoba"
3           i18n_domain="${ikoba_params:devel_pkg}">
[5493]4
[11949]5  <include package="${ikoba_params:devel_pkg}" />
6  <include package="${ikoba_params:devel_pkg}" file="mail.zcml" />
[9217]7  <!-- install job container
[5493]8
[9217]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  -->
[11949]13  <!-- include package="waeup.ikoba" file="async_single.zcml" / -->
14  <include package="waeup.ikoba" file="async_multidb.zcml" />
[9217]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
[7577]26  <!-- Where should the datacenter reside by default? -->
[11949]27  <ikoba:datacenter
[7577]28      path="${buildout:directory}/var/datacenter" />
29
[12060]30  <!-- Where can the Paypal config be found? -->
31  <ikoba:paypalconf
32      path="${buildout:directory}/etc/paypal.conf" />
33
[11949]34    <configure i18n_domain="${ikoba_params:devel_pkg}">
[5493]35
[7499]36
[5493]37      <unauthenticatedPrincipal id="zope.anybody"
38                                title="Unauthenticated User" />
39      <unauthenticatedGroup id="zope.Anybody"
40                            title="Unauthenticated Users" />
41      <authenticatedGroup id="zope.Authenticated"
42                        title="Authenticated Users" />
43      <everybodyGroup id="zope.Everybody"
44                      title="All Users" />
45      <principal id="zope.manager"
46                 title="Manager"
47                 login="grok"
48                 password_manager="SHA1"
49                 password="321b9cd3739bd029629243732eb682db005a7541f7509622"
50                 />
51
[10007]52      <!-- XMLRPC user for demo and testing
53           Plaintext password is xmlrpcuser1
54           Don't use it in real deployment -->
55      <principal id="zope.xmlrpcuser1"
56                 title="XMLRPC User 1"
57                 login="xmlrpcuser1"
58                 password="{SSHA}ZaL4-UiwmSu6AbLYY-yCS_8vtKpH5Hc6"
59                 password_manager="SSHA"
60                 />
61
62      <grant role="waeup.xmlrpcusers1"
63             principal="zope.xmlrpcuser1" />
64
65
[5493]66      <!-- Replace the following directive if you do not want
67           public access -->
[5500]68      <grant permission="zope.app.dublincore.view"
69             principal="zope.Anybody" />
[5493]70      <grant permission="zope.View"
[5500]71             principal="zope.Authenticated" />
[5493]72      <grant permission="zope.app.dublincore.view"
[5500]73             principal="zope.Authenticated" />
[5493]74      <grant permission="waeup.Public"
[7183]75             principal="zope.Everybody" />
[5493]76      <grant permission="waeup.Anonymous"
[7183]77             principal="zope.Anybody" />
78      <grant permission="waeup.Authenticated"
79             principal="zope.Authenticated" />
[5493]80
81      <role id="zope.Manager" title="Site Manager" />
82      <grantAll role="zope.Manager" />
83      <grant role="zope.Manager"
84             principal="zope.manager" />
85   </configure>
86</configure>
Note: See TracBrowser for help on using the repository browser.