Fix total_comments indexer

"@property removes Acquisition wrappers from 'self'.
I don't remember why exactly (some implementation detail of Acquisition),
but it's a fact of life."

Quote from @davisagli on
https://github.com/plone/plone.app.discussion/pull/58

In short: removing the @property from total_comments fix the problem.
This commit is contained in:
Gil Forcada
2015-02-16 10:07:02 +01:00
parent 535af3aace
commit d5b5b1c2cd
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -77,7 +77,6 @@ class Conversation(Traversable, Persistent, Explicit):
parent = aq_inner(self.__parent__)
return parent.restrictedTraverse('@@conversation_view').enabled()
@property
def total_comments(self):
public_comments = [
x for x in self.values()