replace content_object.reindexObject() with event handlers.

svn path=/plone.app.discussion/trunk/; revision=27814
This commit is contained in:
Timo Stollenwerk
2009-07-04 16:18:48 +00:00
parent 2031ec67cf
commit e2934a66b1
3 changed files with 22 additions and 12 deletions
+14 -2
View File
@@ -47,6 +47,18 @@
handler=".comment.notify_workflow"
/>
<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"
/>
<subscriber
for="plone.app.discussion.interfaces.IComment
zope.app.container.contained.IObjectAddedEvent"
@@ -59,13 +71,13 @@
handler=".tool.unindex_object"
/>
<!-- conversation indexes -->
<!-- Conversation indexes -->
<adapter name="total_comments" factory=".catalog.total_comments" />
<adapter name="last_comment_date" factory=".catalog.last_comment_date" />
<adapter name="commentators" factory=".catalog.commentators" />
<adapter name="in_response_to" factory=".catalog.in_response_to" />
<!-- comment indexes -->
<!-- Comment indexes -->
<adapter name="Title" factory=".catalog.title" />
<adapter name="Creator" factory=".catalog.creator" />
<adapter name="Description" factory=".catalog.description" />