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

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

View File

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