2009-05-16 11:47:10 +02:00
|
|
|
<configure
|
2009-05-22 19:30:52 +02:00
|
|
|
xmlns="http://namespaces.zope.org/zope"
|
|
|
|
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
|
2009-12-15 08:15:57 +01:00
|
|
|
xmlns:i18n="http://namespaces.zope.org/i18n"
|
2009-10-14 16:58:08 +02:00
|
|
|
xmlns:monkey="http://namespaces.plone.org/monkey"
|
2010-01-27 17:14:35 +01:00
|
|
|
xmlns:zcml="http://namespaces.zope.org/zcml"
|
2010-08-06 19:15:59 +02:00
|
|
|
xmlns:five="http://namespaces.zope.org/five"
|
2009-05-16 11:47:10 +02:00
|
|
|
i18n_domain="plone.app.discussion">
|
2009-05-11 18:52:16 +02:00
|
|
|
|
2010-08-06 19:15:59 +02:00
|
|
|
<five:registerPackage package="." />
|
|
|
|
|
2009-06-08 23:16:51 +02:00
|
|
|
<include package="plone.indexer" />
|
2010-12-21 20:20:36 +01:00
|
|
|
<include package="plone.app.registry" />
|
2011-07-03 20:26:06 +02:00
|
|
|
<include package="plone.uuid" />
|
|
|
|
<include package="plone.app.uuid" />
|
2010-11-30 10:50:12 +01:00
|
|
|
|
2009-05-13 16:54:06 +02:00
|
|
|
<include file="permissions.zcml" />
|
2010-08-26 11:31:49 +02:00
|
|
|
<include file="notifications.zcml" />
|
2010-01-27 13:28:47 +01:00
|
|
|
<include file="subscribers.zcml" />
|
2011-04-08 22:20:34 +02:00
|
|
|
<include file="upgrades.zcml" />
|
2012-11-26 14:50:07 +01:00
|
|
|
|
|
|
|
<!-- load captch before browser -->
|
|
|
|
<configure zcml:condition="installed plone.formwidget.captcha">
|
|
|
|
<include package="plone.formwidget.captcha" />
|
|
|
|
</configure>
|
|
|
|
<configure zcml:condition="installed plone.formwidget.recaptcha">
|
|
|
|
<include package="plone.formwidget.recaptcha" />
|
|
|
|
</configure>
|
|
|
|
<configure zcml:condition="installed collective.z3cform.norobots">
|
|
|
|
<include package="collective.z3cform.norobots" />
|
|
|
|
</configure>
|
2009-05-13 17:20:02 +02:00
|
|
|
<include package=".browser" />
|
2009-05-13 16:54:06 +02:00
|
|
|
|
2010-01-24 20:39:23 +01:00
|
|
|
<i18n:registerTranslations directory="locales" />
|
2010-12-16 00:52:56 +01:00
|
|
|
|
2009-05-16 11:47:10 +02:00
|
|
|
<!-- Register the installation GenericSetup extension profile -->
|
|
|
|
<genericsetup:registerProfile
|
2009-05-18 16:16:48 +02:00
|
|
|
name="default"
|
|
|
|
title="Plone Discussions"
|
|
|
|
description="Commenting infrastructure for Plone"
|
|
|
|
directory="profiles/default"
|
|
|
|
provides="Products.GenericSetup.interfaces.EXTENSION"
|
|
|
|
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
|
|
|
|
/>
|
2009-05-22 19:30:52 +02:00
|
|
|
|
2009-10-14 16:58:08 +02:00
|
|
|
<!-- Monkey Patches -->
|
|
|
|
|
|
|
|
<include package="collective.monkeypatcher" />
|
|
|
|
|
|
|
|
<monkey:patch
|
|
|
|
description="This allows Catalog Tool to find comments
|
|
|
|
during clear-and-rebuild catalog"
|
|
|
|
class="Products.CMFPlone.CatalogTool.CatalogTool"
|
|
|
|
original="clearFindAndRebuild"
|
|
|
|
replacement=".patches.patchedClearFindAndRebuild"
|
|
|
|
/>
|
|
|
|
|
2009-05-13 17:20:02 +02:00
|
|
|
<!-- Comments -->
|
2009-10-14 16:58:08 +02:00
|
|
|
|
2009-05-13 16:54:06 +02:00
|
|
|
<class class=".comment.Comment">
|
2009-05-13 17:20:02 +02:00
|
|
|
<require interface=".interfaces.IComment" permission="zope2.View" />
|
2009-08-20 04:06:15 +02:00
|
|
|
<require attributes="Title Creator getId getText" permission="zope2.View" />
|
2009-05-13 16:54:06 +02:00
|
|
|
</class>
|
2009-05-22 19:30:52 +02:00
|
|
|
|
2010-12-15 23:45:19 +01:00
|
|
|
<class class=".comment.Comment">
|
|
|
|
<implements interface="plone.uuid.interfaces.IAttributeUUID" />
|
|
|
|
</class>
|
|
|
|
|
2009-05-18 17:15:36 +02:00
|
|
|
<utility
|
|
|
|
component=".comment.CommentFactory"
|
|
|
|
name="plone.Comment"
|
|
|
|
/>
|
2009-05-31 20:14:42 +02:00
|
|
|
|
2009-05-13 17:20:02 +02:00
|
|
|
<!-- Conversations -->
|
2009-10-14 16:58:08 +02:00
|
|
|
|
2009-05-13 17:20:02 +02:00
|
|
|
<class class=".conversation.Conversation">
|
|
|
|
<require interface=".interfaces.IConversation" permission="zope2.View" />
|
|
|
|
</class>
|
2009-05-22 19:30:52 +02:00
|
|
|
|
2009-05-13 17:20:02 +02:00
|
|
|
<adapter factory=".conversation.conversationAdapterFactory" />
|
2009-05-11 18:52:16 +02:00
|
|
|
|
2009-05-18 16:23:46 +02:00
|
|
|
<adapter factory=".conversation.ConversationReplies" />
|
|
|
|
<adapter factory=".conversation.CommentReplies" />
|
2009-05-22 19:30:52 +02:00
|
|
|
|
2009-08-11 11:45:34 +02:00
|
|
|
<!-- Captcha Vocabulary -->
|
|
|
|
<utility component=".vocabularies.captcha_vocabulary"
|
2010-08-25 16:03:29 +02:00
|
|
|
name="plone.app.discussion.vocabularies.CaptchaVocabulary"
|
|
|
|
provides="zope.schema.interfaces.IVocabularyFactory" />
|
|
|
|
|
|
|
|
<!-- Text Transform Vocabulary -->
|
|
|
|
<utility component=".vocabularies.text_transform_vocabulary"
|
|
|
|
name="plone.app.discussion.vocabularies.TextTransformVocabulary"
|
|
|
|
provides="zope.schema.interfaces.IVocabularyFactory" />
|
2009-08-11 11:45:34 +02:00
|
|
|
|
2009-07-04 18:18:48 +02:00
|
|
|
<!-- Conversation indexes -->
|
2009-07-01 22:57:55 +02:00
|
|
|
<adapter name="total_comments" factory=".catalog.total_comments" />
|
|
|
|
<adapter name="last_comment_date" factory=".catalog.last_comment_date" />
|
|
|
|
<adapter name="commentators" factory=".catalog.commentators" />
|
2009-07-03 10:03:09 +02:00
|
|
|
<adapter name="in_response_to" factory=".catalog.in_response_to" />
|
2009-07-01 22:57:55 +02:00
|
|
|
|
2009-07-04 18:18:48 +02:00
|
|
|
<!-- Comment indexes -->
|
2010-12-15 21:39:55 +01:00
|
|
|
<adapter name="UID" factory=".catalog.UID" />
|
2009-06-02 01:45:49 +02:00
|
|
|
<adapter name="Title" factory=".catalog.title" />
|
|
|
|
<adapter name="Creator" factory=".catalog.creator" />
|
|
|
|
<adapter name="Description" factory=".catalog.description" />
|
|
|
|
<adapter name="SearchableText" factory=".catalog.searchable_text" />
|
2009-06-02 01:17:13 +02:00
|
|
|
<adapter name="effective" factory=".catalog.effective" />
|
|
|
|
<adapter name="created" factory=".catalog.created" />
|
|
|
|
<adapter name="modified" factory=".catalog.modified" />
|
2009-07-06 18:56:09 +02:00
|
|
|
<adapter name="total_comments" factory=".catalog.comments_total_comments" />
|
|
|
|
<adapter name="last_comment_date" factory=".catalog.comments_last_comment_date" />
|
|
|
|
<adapter name="commentators" factory=".catalog.comments_commentators" />
|
2009-06-02 01:17:13 +02:00
|
|
|
|
2010-08-06 19:15:59 +02:00
|
|
|
</configure>
|