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
-8
View File
@@ -255,10 +255,6 @@ class Conversation(Traversable, Persistent, Explicit):
notify(ObjectAddedEvent(comment.__of__(self), self, id))
notify(ContainerModifiedEvent(self))
# XXX: This shouldn't be necessary.
content_obj = aq_parent(self)
content_obj.reindexObject()
return id
# Dict API
@@ -317,10 +313,6 @@ 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)