This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
tabellio.contest/tabellio/contest/configure.zcml

57 lines
1.6 KiB
XML

<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:grok="http://namespaces.zope.org/grok"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
xmlns:browser="http://namespaces.zope.org/browser"
i18n_domain="tabellio.contest">
<!-- Include configuration for dependencies listed in setup.py -->
<includeDependencies package="." />
<permission
id="tabellio.contest.Manage"
title="Contests: Manage Contests"
/>
<!-- Grok the package to initialise schema interfaces and content classes -->
<grok:grok package="." />
<browser:view
name="play"
for="tabellio.contest.contest.IContest"
class=".contest.Participate"
permission="zope2.View"
/>
<browser:view
name="remove"
for="tabellio.contest.participant.IParticipant"
class=".participant.Remove"
permission="tabellio.contest.Manage"
/>
<browser:view
name="manage"
for="tabellio.contest.contest.IContest"
class=".contest.Manage"
permission="tabellio.contest.Manage"
/>
<browser:view
name="pick"
for="tabellio.contest.contest.IContest"
class=".contest.PickWinner"
permission="tabellio.contest.Manage"
/>
<!-- Register an extension profile to make the product installable -->
<genericsetup:registerProfile
name="default"
title="Tabellio Contest Support"
description="..."
directory="profiles/default"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>
</configure>