From 045a926621720446feb338b526bd7c0e22534265 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Thu, 2 Jul 2009 16:04:02 +0000 Subject: [PATCH] fix for "TypeError: can't pickle OIBTreeItems objects". svn path=/plone.app.discussion/trunk/; revision=27776 --- plone/app/discussion/conversation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plone/app/discussion/conversation.py b/plone/app/discussion/conversation.py index b28054f..2f824d6 100644 --- a/plone/app/discussion/conversation.py +++ b/plone/app/discussion/conversation.py @@ -167,7 +167,8 @@ class Conversation(Traversable, Persistent, Explicit): @property def commentators(self): - return self._commentators.keys() + if len(self._commentators.keys()) != 0: + return self._commentators.keys() def objectIds(self): return self._comments.keys()