Updated Verbatim Paragraph renderer dev-dc
authorDamien Correia
Thu, 06 Sep 2018 11:39:36 +0200
branchdev-dc
changeset 132 4bff0f8de802
parent 131 008b7b01b86c
child 133 ccc6653889e4
Updated Verbatim Paragraph renderer
src/pyams_default_theme/component/paragraph/verbatim.py
--- a/src/pyams_default_theme/component/paragraph/verbatim.py	Thu Sep 06 11:38:34 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/verbatim.py	Thu Sep 06 11:39:36 2018 +0200
@@ -30,7 +30,7 @@
 from pyams_template.template import template_config
 from pyams_utils.adapter import adapter_config, get_annotation_adapter
 from zope.interface import implementer
-from zope.location import locate, Location
+from zope.location import Location
 from zope.schema.fieldproperty import FieldProperty
 
 from pyams_default_theme import _
@@ -97,15 +97,6 @@
     i18n_context_attrs = ('title', 'quote', 'charge')
     illustration_renderer = None
 
-    def update(self):
-        super(BaseVerbatimParagraphRenderer, self).update()
-        if self.settings.can_display_illustration():
-            illustration = IIllustration(self.context, None)
-            renderer = illustration.get_renderer(self.request)
-            if renderer is not None:
-                renderer.update()
-                self.illustration_renderer = renderer
-
 
 @adapter_config(name='default', context=(IVerbatimParagraph, IPyAMSLayer), provides=IContentRenderer)
 @template_config(template='templates/verbatim-default.pt', layer=IPyAMSLayer)