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

45 lines
1.3 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="." />
<!-- 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="zope2.View"
/> <!-- XXX: permissions -->
<browser:view
name="pick"
for="tabellio.contest.contest.IContest"
class=".contest.PickWinner"
permission="zope2.View"
/> <!-- XXX: permissions -->
<!-- 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>