2009-05-16 11:47:10 +02:00
|
|
|
<configure
|
|
|
|
xmlns="http://namespaces.zope.org/zope"
|
|
|
|
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
|
|
|
|
i18n_domain="plone.app.discussion">
|
2009-05-11 18:52:16 +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
|
|
|
|
name="default"
|
|
|
|
title="Plone Discussions"
|
|
|
|
directory="profiles/default"
|
|
|
|
description="Setup plone.app.discussions."
|
|
|
|
provides="Products.GenericSetup.interfaces.EXTENSION"
|
|
|
|
/>
|
|
|
|
|
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-13 17:20:02 +02:00
|
|
|
|
2009-05-16 11:47:10 +02:00
|
|
|
<utility factory=".comment.CommentFactory"
|
|
|
|
provides="plone.app.discussion.interfaces.IComment"
|
|
|
|
name="Discussion Item" />
|
2009-05-13 17:20:02 +02:00
|
|
|
|
|
|
|
<!-- Conversations -->
|
|
|
|
<class class=".conversation.Conversation">
|
|
|
|
<require interface=".interfaces.IConversation" permission="zope2.View" />
|
|
|
|
</class>
|
|
|
|
|
|
|
|
<adapter factory=".conversation.conversationAdapterFactory" />
|
2009-05-11 18:52:16 +02:00
|
|
|
|
2009-05-16 17:05:22 +02:00
|
|
|
|
|
|
|
<!-- Event subscribers -->
|
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IComment
|
|
|
|
zope.app.container.contained.IObjectAddedEvent"
|
|
|
|
handler=".tool.object_added_handler"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IComment
|
|
|
|
zope.app.container.contained.IObjectRemovedEvent"
|
|
|
|
handler=".tool.object_removed_handler"
|
|
|
|
/>
|
|
|
|
|
2009-05-11 18:52:16 +02:00
|
|
|
</configure>
|