/
configure.zcml
79 lines (75 loc) · 2.54 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<configure
i18n_domain="plone.app.multilingualindexes"
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:five="http://namespaces.zope.org/five"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:plone="http://namespaces.plone.org/plone">
<five:registerPackage
initialize=".initialize"
package="."
/>
<i18n:registerTranslations directory="locales" />
<genericsetup:registerProfile
description="Installs the plone.app.multilingualindexes add-on."
directory="profiles/default"
name="default"
post_handler=".setuphandlers.post_install"
provides="Products.GenericSetup.interfaces.EXTENSION"
title="Multilingual Indexes"
/>
<genericsetup:registerProfile
description="Uninstalls the plone.app.multilingualindexes add-on."
directory="profiles/uninstall"
name="uninstall"
post_handler=".setuphandlers.uninstall"
provides="Products.GenericSetup.interfaces.EXTENSION"
title="Multilingual Indexes (uninstall)"
/>
<utility
factory=".setuphandlers.HiddenProfiles"
name="plone.app.multilingualindexes-hiddenprofiles"
/>
<adapter
factory=".tgpath.tg_path_indexer"
name="tgpath"
/>
<browser:page
class=".controlpanel.MultiLingualIndexPanelView"
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
name="multilingualindex-controlpanel"
permission="cmf.ManagePortal"
/>
<subscriber
for="plone.registry.interfaces.IRecordModifiedEvent"
handler=".utils.validate_fallback_record_change"
/>
<utility
component=".querymodifiers.modify_query_to_enforce_site_root"
name="0100"
/>
<browser:page
name="tgpathcontentlisting"
class=".browser.TGPathFolderListing"
permission="zope2.View"
for="Products.CMFCore.interfaces.IFolderish"
/>
<subscriber
for="plone.app.multilingual.events.ITranslationRegisteredEvent"
handler=".languagefallback.reindex_languagefallback"
/>
<subscriber
for="plone.app.multilingual.events.ITranslationUpdatedEvent"
handler=".languagefallback.reindex_languagefallback"
/>
<subscriber
for="plone.app.multilingual.events.ITranslationRemovedEvent"
handler=".languagefallback.reindex_languagefallback"
/>
<subscriber
for="plone.dexterity.interfaces.IDexterityContent
OFS.interfaces.IObjectWillBeRemovedEvent"
handler=".languagefallback.annotate_documentid_to_tg_subscriber"
/>
</configure>