reindex content object when deleting a comment.

svn path=/plone.app.discussion/trunk/; revision=27786
This commit is contained in:
Timo Stollenwerk 2009-07-03 06:33:22 +00:00
parent 47fd22f02e
commit 40eb6b17c1

View File

@ -317,6 +317,10 @@ class Conversation(Traversable, Persistent, Explicit):
if not suppress_container_modified:
notify(ContainerModifiedEvent(self))
# XXX: This shouldn't be necessary.
content_obj = aq_parent(self)
content_obj.reindexObject()
def __iter__(self):
return iter(self._comments)