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

Last change on this file since 14657 was 14636, checked in by Henrik Bettermann, 8 years ago

Add user zope.fprduser1 and assign waeup.FingerprintDevice? role for testing.

File size: 3.7 KB
RevLine 
[5493]1<configure xmlns="http://namespaces.zope.org/zope"
[7808]2           xmlns:kofa="http://namespaces.waeup.org/kofa"
[8796]3           i18n_domain="${kofa_params:devel_pkg}">
[5493]4
[8796]5  <include package="${kofa_params:devel_pkg}" />
6  <include package="${kofa_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  -->
13  <!-- include package="waeup.kofa" file="async_single.zcml" / -->
14  <include package="waeup.kofa" file="async_multidb.zcml" />
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? -->
[7808]27  <kofa:datacenter
[7577]28      path="${buildout:directory}/var/datacenter" />
29
[8796]30    <configure i18n_domain="${kofa_params:devel_pkg}">
[5493]31
[7499]32
[5493]33      <unauthenticatedPrincipal id="zope.anybody"
34                                title="Unauthenticated User" />
35      <unauthenticatedGroup id="zope.Anybody"
36                            title="Unauthenticated Users" />
37      <authenticatedGroup id="zope.Authenticated"
38                        title="Authenticated Users" />
39      <everybodyGroup id="zope.Everybody"
40                      title="All Users" />
41      <principal id="zope.manager"
42                 title="Manager"
43                 login="grok"
44                 password_manager="SHA1"
45                 password="321b9cd3739bd029629243732eb682db005a7541f7509622"
46                 />
47
[10007]48      <!-- XMLRPC user for demo and testing
49           Plaintext password is xmlrpcuser1
50           Don't use it in real deployment -->
51      <principal id="zope.xmlrpcuser1"
52                 title="XMLRPC User 1"
53                 login="xmlrpcuser1"
54                 password="{SSHA}ZaL4-UiwmSu6AbLYY-yCS_8vtKpH5Hc6"
55                 password_manager="SSHA"
56                 />
57
58      <grant role="waeup.xmlrpcusers1"
59             principal="zope.xmlrpcuser1" />
60
[14636]61      <!-- XMLRPC fingerprint reader device user for demo and testing
62           Plaintext password is fprduser1
63           Don't use it in real deployment -->
64      <principal id="zope.fprduser1"
65                 title="FPRD User 1"
66                 login="fprduser1"
67                 password="{SSHA}vMKQ-e_ry350aXS4uqsPH0HZqWOsWMpk"
68                 password_manager="SSHA"
69                 />
[10007]70
[14636]71      <grant role="waeup.FingerprintDevice"
72             principal="zope.fprduser1" />
73
[5493]74      <!-- Replace the following directive if you do not want
75           public access -->
[5500]76      <grant permission="zope.app.dublincore.view"
77             principal="zope.Anybody" />
[5493]78      <grant permission="zope.View"
[5500]79             principal="zope.Authenticated" />
[5493]80      <grant permission="zope.app.dublincore.view"
[5500]81             principal="zope.Authenticated" />
[5493]82      <grant permission="waeup.Public"
[7183]83             principal="zope.Everybody" />
[5493]84      <grant permission="waeup.Anonymous"
[7183]85             principal="zope.Anybody" />
86      <grant permission="waeup.Authenticated"
87             principal="zope.Authenticated" />
[5493]88
89      <role id="zope.Manager" title="Site Manager" />
90      <grantAll role="zope.Manager" />
91      <grant role="zope.Manager"
92             principal="zope.manager" />
93   </configure>
94</configure>
Note: See TracBrowser for help on using the repository browser.