plone.app.discussion/plone/app/discussion/configure.zcml
Martin Aspeli f5a781501b Register IReplies adapters. Remove version.txt since we now get this from setup.py
svn path=/plone.app.discussion/trunk/; revision=27011
2009-05-18 14:23:46 +00:00

53 lines
1.8 KiB
XML

<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="plone.app.discussion">
<include file="permissions.zcml" />
<include package=".browser" />
<!-- Register the installation GenericSetup extension profile -->
<genericsetup:registerProfile
name="default"
title="Plone Discussions"
description="Commenting infrastructure for Plone"
directory="profiles/default"
provides="Products.GenericSetup.interfaces.EXTENSION"
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
/>
<!-- Comments -->
<class class=".comment.Comment">
<require interface=".interfaces.IComment" permission="zope2.View" />
<require attributes="Title Creator getId" permission="zope2.View" />
</class>
<utility factory=".comment.CommentFactory"
provides="plone.app.discussion.interfaces.IComment"
name="Discussion Item" />
<!-- Conversations -->
<class class=".conversation.Conversation">
<require interface=".interfaces.IConversation" permission="zope2.View" />
</class>
<adapter factory=".conversation.conversationAdapterFactory" />
<adapter factory=".conversation.ConversationReplies" />
<adapter factory=".conversation.CommentReplies" />
<!-- 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"
/>
</configure>