replace content_object.reindexObject() with event handlers.
svn path=/plone.app.discussion/trunk/; revision=27814
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user