fix bug 834504. Replies have a wrong path index.

svn path=/plone.app.discussion/trunk/; revision=27656
This commit is contained in:
Timo Stollenwerk 2009-06-24 13:55:20 +00:00
parent fee068dc09
commit e3e6d5548e

View File

@ -449,7 +449,7 @@ class CommentReplies(ConversationReplies):
def __init__(self, context):
self.comment = context
self.conversation = self.comment.__parent__
self.conversation = aq_parent(self.comment)
if self.conversation is None or not hasattr(self.conversation, '_children'):
raise TypeError("This adapter doesn't know what to do with the parent conversation")