-
Notifications
You must be signed in to change notification settings - Fork 12
/
configure.zcml
59 lines (47 loc) · 1.52 KB
/
configure.zcml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:plone="http://namespaces.plone.org/plone"
xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="collective.polls">
<five:registerPackage package="." />
<includeDependencies package="." />
<i18n:registerTranslations directory="locales" />
<permission
id="collective.polls.AddPoll"
title="collective.polls: Add poll"
/>
<permission
id="collective.polls.ClosePoll"
title="collective.polls: Close poll"
/>
<permission
id="collective.polls.Vote"
title="collective.polls: Vote"
/>
<browser:resourceDirectory
name="collective.polls"
directory="static"
/>
<include package=".browser" />
<include package=".portlet" />
<include file="profiles.zcml" />
<include package=".tiles" zcml:condition="installed collective.cover" />
<subscriber
for="collective.polls.content.poll.IPoll
Products.CMFCore.interfaces.IActionSucceededEvent"
handler=".subscribers.fix_permissions"
/>
<subscriber
for="collective.polls.content.poll.IPoll
Products.CMFCore.interfaces.IActionSucceededEvent"
handler=".subscribers.remove_votes"
/>
<utility
name="collective.polls"
provides="collective.polls.polls.IPolls"
factory="collective.polls.polls.Polls"
/>
</configure>