Ensure workflow is initialised when the comment is added. Also ensure that we won't get an error on unindex if the local utility can't be found.

svn path=/plone.app.discussion/trunk/; revision=27070
This commit is contained in:
Martin Aspeli
2009-05-23 16:37:10 +00:00
parent fba5d3f752
commit 8ffca9009c
4 changed files with 48 additions and 14 deletions
+10 -3
View File
@@ -26,7 +26,7 @@
component=".comment.CommentFactory"
name="plone.Comment"
/>
<!-- Conversations -->
<class class=".conversation.Conversation">
<require interface=".interfaces.IConversation" permission="zope2.View" />
@@ -38,16 +38,23 @@
<adapter factory=".conversation.CommentReplies" />
<!-- Event subscribers -->
<subscriber
for="plone.app.discussion.interfaces.IComment
zope.app.container.contained.IObjectAddedEvent"
handler=".tool.object_added_handler"
handler=".comment.notify_workflow"
/>
<subscriber
for="plone.app.discussion.interfaces.IComment
zope.app.container.contained.IObjectAddedEvent"
handler=".tool.index_object"
/>
<subscriber
for="plone.app.discussion.interfaces.IComment
zope.app.container.contained.IObjectRemovedEvent"
handler=".tool.object_removed_handler"
handler=".tool.unindex_object"
/>
</configure>