# HG changeset patch # User Thierry Florac # Date 1536574393 -7200 # Node ID 45dd221040a4bf4d621d64198860ce9f5aeff142 # Parent 61ba7f260f3b0f2a02327718082d756324e4b9b1 Updated paragraphs renderer diff -r 61ba7f260f3b -r 45dd221040a4 src/pyams_default_theme/component/association/__init__.py --- a/src/pyams_default_theme/component/association/__init__.py Mon Sep 10 12:02:03 2018 +0200 +++ b/src/pyams_default_theme/component/association/__init__.py Mon Sep 10 12:13:13 2018 +0200 @@ -97,8 +97,12 @@ self.links = [item for item in IAssociationContainer(self.context).get_visible_items(self.request) if IInternalLink.providedBy(item) and IParagraphContainerTarget.providedBy(item.target)] - def get_paragraphs(self, target): + def get_renderers(self, target): container = IParagraphContainer(target, None) if container is not None: settings = self.settings - yield from container.get_visible_paragraphs(None, settings.anchors_only, settings.factories) + for renderer in map(lambda x: x.get_renderer(self.request), + container.get_visible_paragraphs(None, settings.anchors_only, settings.factories)): + if renderer is not None: + renderer.update() + yield renderer.render() diff -r 61ba7f260f3b -r 45dd221040a4 src/pyams_default_theme/component/association/templates/association-remote-content.pt --- a/src/pyams_default_theme/component/association/templates/association-remote-content.pt Mon Sep 10 12:02:03 2018 +0200 +++ b/src/pyams_default_theme/component/association/templates/association-remote-content.pt Mon Sep 10 12:13:13 2018 +0200 @@ -7,10 +7,8 @@
${structure:tales:html(header)}
- - ${structure:renderer.render()} + + ${structure:renderer}