fix for "TypeError: can't pickle OIBTreeItems objects".
svn path=/plone.app.discussion/trunk/; revision=27778
This commit is contained in:
@@ -167,7 +167,7 @@ class Conversation(Traversable, Persistent, Explicit):
|
||||
|
||||
@property
|
||||
def commentators(self):
|
||||
return self._commentators.keys()
|
||||
return self._commentators
|
||||
|
||||
def objectIds(self):
|
||||
return self._comments.keys()
|
||||
@@ -255,6 +255,10 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user