Merge pull request #7 from plone/hide-from-breadcrumb

Hide Conversation objects from breadcrumb navigation
This commit is contained in:
Timo Stollenwerk 2012-07-12 06:18:42 -07:00
commit 19a511f4e5
3 changed files with 9 additions and 1 deletions

View File

@ -48,6 +48,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]

View File

@ -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
@ -58,7 +60,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

View File

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