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-05-16 11:47:10 +02:00
|
|
|
i18n_domain="plone.app.discussion">
|
2009-05-11 18:52:16 +02:00
|
|
|
|
2009-06-08 23:16:51 +02:00
|
|
|
<include package="plone.indexer" />
|
2009-06-11 15:52:31 +02:00
|
|
|
|
2009-05-13 16:54:06 +02:00
|
|
|
<include file="permissions.zcml" />
|
2009-05-13 17:20:02 +02:00
|
|
|
<include package=".browser" />
|
2009-05-13 16:54:06 +02: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-05-13 17:20:02 +02:00
|
|
|
<!-- Comments -->
|
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-05-13 16:54:06 +02:00
|
|
|
<require attributes="Title Creator getId" permission="zope2.View" />
|
|
|
|
</class>
|
2009-05-22 19:30:52 +02:00
|
|
|
|
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 -->
|
|
|
|
<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-05-16 17:05:22 +02:00
|
|
|
<!-- Event subscribers -->
|
2009-05-31 20:14:42 +02:00
|
|
|
|
2009-05-23 18:37:10 +02:00
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IComment
|
|
|
|
zope.app.container.contained.IObjectAddedEvent"
|
|
|
|
handler=".comment.notify_workflow"
|
|
|
|
/>
|
2009-05-31 20:14:42 +02:00
|
|
|
|
2009-07-04 18:18:48 +02:00
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IComment
|
|
|
|
zope.app.container.contained.IObjectAddedEvent"
|
|
|
|
handler=".comment.notify_content_object"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IComment
|
|
|
|
zope.app.container.contained.IObjectRemovedEvent"
|
|
|
|
handler=".comment.notify_content_object"
|
|
|
|
/>
|
|
|
|
|
2009-05-16 17:05:22 +02:00
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IComment
|
2009-05-18 16:16:48 +02:00
|
|
|
zope.app.container.contained.IObjectAddedEvent"
|
2009-05-23 18:37:10 +02:00
|
|
|
handler=".tool.index_object"
|
2009-05-16 17:05:22 +02:00
|
|
|
/>
|
|
|
|
|
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IComment
|
2009-05-18 16:16:48 +02:00
|
|
|
zope.app.container.contained.IObjectRemovedEvent"
|
2009-05-23 18:37:10 +02:00
|
|
|
handler=".tool.unindex_object"
|
2009-05-16 17:05:22 +02:00
|
|
|
/>
|
2009-05-18 16:16:48 +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 -->
|
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-05-11 18:52:16 +02:00
|
|
|
</configure>
|