From 8161dc14dae8cd8b7c9d796066d302b8a4a153c9 Mon Sep 17 00:00:00 2001 From: Alan Hoey Date: Mon, 25 Nov 2013 12:54:49 +0000 Subject: [PATCH] Fixing test failures. --- plone/app/discussion/conversation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plone/app/discussion/conversation.py b/plone/app/discussion/conversation.py index 16a3cec..ca22c05 100644 --- a/plone/app/discussion/conversation.py +++ b/plone/app/discussion/conversation.py @@ -101,13 +101,13 @@ class Conversation(Traversable, Persistent, Explicit): ] return len(public_comments) - @property + @computed_attribute_decorator(level=1) def last_comment_date(self): # self._comments is an Instance of a btree. The keys # are always ordered comment_keys = self._comments.keys() for comment_key in reversed(comment_keys): - comment = self._comments[comment_key] + comment = self[comment_key] if user_nobody.has_permission('View', comment): return comment.creation_date return None @@ -116,10 +116,10 @@ class Conversation(Traversable, Persistent, Explicit): def commentators(self): return self._commentators - @property + @computed_attribute_decorator(level=1) def public_commentators(self): retval = set() - for comment in self._comments.values(): + for comment in self.values(): if not user_nobody.has_permission('View', comment): continue retval.add(comment.author_username)