# HG changeset patch # User Thierry Florac # Date 1506002789 -7200 # Node ID 0c23e1a6b1b65f16e3ab64f8d4d3d0e59598a5da # Parent 6d75755407b73154ff3216304ac3e47819e76f01 Filter hidden paragraphs in summary diff -r 6d75755407b7 -r 0c23e1a6b1b6 src/pyams_content/component/paragraph/zmi/summary.py --- a/src/pyams_content/component/paragraph/zmi/summary.py Thu Sep 21 14:31:04 2017 +0200 +++ b/src/pyams_content/component/paragraph/zmi/summary.py Thu Sep 21 16:06:29 2017 +0200 @@ -58,7 +58,8 @@ def __init__(self, context, request): super(ParagraphsContainerSummaryView, self).__init__(context, request) - self.paragraphs = IParagraphContainer(self.context) + self.paragraphs = [para for para in IParagraphContainer(self.context).values() + if para.visible] self.languages = II18nManager(self.context).get_languages() def render_paragraph(self, paragraph, language=None): diff -r 6d75755407b7 -r 0c23e1a6b1b6 src/pyams_content/component/paragraph/zmi/templates/summary.pt --- a/src/pyams_content/component/paragraph/zmi/templates/summary.pt Thu Sep 21 14:31:04 2017 +0200 +++ b/src/pyams_content/component/paragraph/zmi/templates/summary.pt Thu Sep 21 16:06:29 2017 +0200 @@ -1,9 +1,9 @@
- -

This content doesn't contain any paragraph.

@@ -24,9 +24,9 @@
- -

This content doesn't contain any paragraph.