Make sure the conversation.getComments method returns acquisition wrapped comments.

svn path=/plone.app.discussion/trunk/; revision=51639
This commit is contained in:
Timo Stollenwerk 2011-08-18 06:39:25 +00:00
parent f6c3e035f7
commit 5045960281
2 changed files with 6 additions and 1 deletions

View File

@ -14,6 +14,10 @@ Changelog
- Make sure only comments to the content object are removed from the catalog
when the content object is moved.
[hannosch, timo]
- Make sure the conversation.getComments method returns acquisition wrapped
comments.
[timo]
2.0.9 (2011-07-25)

View File

@ -106,7 +106,8 @@ class Conversation(Traversable, Persistent, Explicit):
"""
count = 0l
for comment in self._comments.values(min=start):
yield comment
# Yield the acquisition wrapped comment
yield self[comment.id]
count += 1
if size and count > size: