From e3e6d5548e5cdf9c5b6a002a1bc07abd7b39f521 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Wed, 24 Jun 2009 13:55:20 +0000 Subject: [PATCH] fix bug 834504. Replies have a wrong path index. svn path=/plone.app.discussion/trunk/; revision=27656 --- plone/app/discussion/conversation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/discussion/conversation.py b/plone/app/discussion/conversation.py index 866c838..b28054f 100644 --- a/plone/app/discussion/conversation.py +++ b/plone/app/discussion/conversation.py @@ -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")