plone/plone.app.discussion — pull request #58 by gforcada (2014-12-09 10:50:53+00:00)
Title: Acquisition total comments

The problem is described here: https://github.com/plone/Products.CMFPlone/issues/324

In short, two problems:

- if ``View`` permission is acquired, then ``total_comments`` does not return the proper result (due to not using acquisition wrapped comments)
- upon catalog reindexes ``total_comments`` *again* doesn't do its job properly, the *funny* thing is that if you remove the ``@property`` decorator it does work (as the second commit shows).

Opinions?