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:
parent
3eab51e1c4
commit
ad5cca6454
@ -9,6 +9,11 @@ Changelog
|
|||||||
- Fix excessive JS comment deletion.
|
- Fix excessive JS comment deletion.
|
||||||
[gaudenz]
|
[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.
|
- No longer depend on zope.app packages.
|
||||||
[hannosch]
|
[hannosch]
|
||||||
|
|
||||||
|
@ -42,6 +42,8 @@ from BTrees.OIBTree import OIBTree
|
|||||||
from BTrees.LOBTree import LOBTree
|
from BTrees.LOBTree import LOBTree
|
||||||
from BTrees.LLBTree import LLSet
|
from BTrees.LLBTree import LLSet
|
||||||
|
|
||||||
|
from Products.CMFPlone.interfaces import IHideFromBreadcrumbs
|
||||||
|
|
||||||
from plone.app.discussion.interfaces import IConversation
|
from plone.app.discussion.interfaces import IConversation
|
||||||
from plone.app.discussion.interfaces import IReplies
|
from plone.app.discussion.interfaces import IReplies
|
||||||
from plone.app.discussion.comment import Comment
|
from plone.app.discussion.comment import Comment
|
||||||
@ -56,7 +58,7 @@ class Conversation(Traversable, Persistent, Explicit):
|
|||||||
comment lookup.
|
comment lookup.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
implements(IConversation)
|
implements(IConversation, IHideFromBreadcrumbs)
|
||||||
|
|
||||||
__allow_access_to_unprotected_subobjects__ = True
|
__allow_access_to_unprotected_subobjects__ = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user