Updated pictogram renderer dev-dc
authorDamien Correia
Fri, 05 Oct 2018 14:13:25 +0200
branchdev-dc
changeset 167 83facaf2246a
parent 166 dcf8ca8f9bf1
child 168 71aeef3a5432
child 178 5276328160b3
Updated pictogram renderer
src/pyams_default_theme/component/paragraph/pictogram.py
--- a/src/pyams_default_theme/component/paragraph/pictogram.py	Fri Oct 05 14:10:51 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/pictogram.py	Fri Oct 05 14:13:25 2018 +0200
@@ -16,7 +16,7 @@
 # import standard library
 
 # import interfaces
-from pyams_content.component.paragraph.interfaces.pictogram import IPictogramParagraph
+from pyams_content.component.paragraph.interfaces.pictogram import IPictogramParagraph, IPictogramContainer
 from pyams_content.features.renderer.interfaces import IContentRenderer
 from pyams_skin.layer import IPyAMSLayer
 
@@ -39,3 +39,7 @@
 
     label = _("Default pictograms renderer")
     weight = 1
+
+    @property
+    def pictograms(self):
+        return IPictogramContainer(self.context)