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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user