Hide Conversation objects from breadcrumb navigation

The breadcrumbs navigation is also used in the search results view.
This lead to Conversation objects showing up if 'Discussion Items'
are searchable.
This commit is contained in:
Gaudenz Steinlin 2012-05-29 11:27:59 +02:00
parent 3eab51e1c4
commit ad5cca6454
3 changed files with 9 additions and 1 deletions

View File

@ -9,6 +9,11 @@ Changelog
- Fix excessive JS comment deletion.
[gaudenz]
- Hide Conversation objects from breadcrumb navigation. The breadcrumbs
navigation is also used in the search results view. This lead to Conversation
objects showing up if 'Discussion Items' are searchable.
[gaudenz]
- No longer depend on zope.app packages.
[hannosch]

View File

@ -42,6 +42,8 @@ from BTrees.OIBTree import OIBTree
from BTrees.LOBTree import LOBTree
from BTrees.LLBTree import LLSet
from Products.CMFPlone.interfaces import IHideFromBreadcrumbs
from plone.app.discussion.interfaces import IConversation
from plone.app.discussion.interfaces import IReplies
from plone.app.discussion.comment import Comment
@ -56,7 +58,7 @@ class Conversation(Traversable, Persistent, Explicit):
comment lookup.
"""
implements(IConversation)
implements(IConversation, IHideFromBreadcrumbs)
__allow_access_to_unprotected_subobjects__ = True

View File

@ -12,6 +12,7 @@ install_requires = [
'plone.indexer',
'plone.registry',
'plone.z3cform',
'Products.CMFPlone',
'ZODB3',
'zope.interface',
'zope.component',