source: main/waeup.uniben/trunk/etc/site.zcml.in @ 17929

Last change on this file since 17929 was 17830, checked in by Henrik Bettermann, 3 months ago

Academic section can be seen by anonymous users.

File size: 3.0 KB
RevLine 
[5493]1<configure xmlns="http://namespaces.zope.org/zope"
[17298]2           xmlns:browser="http://namespaces.zope.org/browser"
[7825]3           xmlns:kofa="http://namespaces.waeup.org/kofa"
[8020]4           i18n_domain="waeup.uniben">
[5493]5
[8020]6  <include package="waeup.uniben" />
7  <include package="waeup.uniben" file="mail.zcml" />
[5493]8
[9222]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
[7587]28  <!-- Where should the datacenter reside by default? -->
[7825]29  <kofa:datacenter
[7587]30      path="${buildout:directory}/var/datacenter" />
31
[8020]32    <configure i18n_domain="waeup.uniben">
[5493]33
34      <unauthenticatedPrincipal id="zope.anybody"
35                                title="Unauthenticated User" />
36      <unauthenticatedGroup id="zope.Anybody"
37                            title="Unauthenticated Users" />
38      <authenticatedGroup id="zope.Authenticated"
39                        title="Authenticated Users" />
40      <everybodyGroup id="zope.Everybody"
41                      title="All Users" />
42      <principal id="zope.manager"
43                 title="Manager"
44                 login="grok"
[9622]45                 password_manager="SSHA"
46                 password="{SSHA}PQQypyPElik2Pi3wM5kO1W78eVCGgdZ8"
[5493]47                 />
48
49      <!-- Replace the following directive if you do not want
50           public access -->
[5500]51      <grant permission="zope.app.dublincore.view"
52             principal="zope.Anybody" />
[5493]53      <grant permission="zope.View"
[5500]54             principal="zope.Authenticated" />
[5493]55      <grant permission="zope.app.dublincore.view"
[5500]56             principal="zope.Authenticated" />
[5493]57      <grant permission="waeup.Public"
[7607]58             principal="zope.Everybody" />
[17830]59      <grant permission="waeup.viewAcademics"
60             principal="zope.Everybody" />
[5493]61      <grant permission="waeup.Anonymous"
[7607]62             principal="zope.Anybody" />
63      <grant permission="waeup.Authenticated"
64             principal="zope.Authenticated" />
[5493]65
66      <role id="zope.Manager" title="Site Manager" />
67      <grantAll role="zope.Manager" />
68      <grant role="zope.Manager"
69             principal="zope.manager" />
70   </configure>
[17298]71
72   <!-- session -->
73   <browser:beakerSession
74        key="waeup.kofa.session.id"
75        secret="KofaRocks"
76        timeout="3600"
77        type="cookie"
78        validate_key="thisMightBeChanged"
79        />
80       
[5493]81</configure>
Note: See TracBrowser for help on using the repository browser.