Merge default dev-dc
authorDamien Correia
Thu, 06 Sep 2018 18:12:27 +0200
branchdev-dc
changeset 133 ccc6653889e4
parent 132 4bff0f8de802 (diff)
parent 130 f4f8dccfee8b (current diff)
child 134 ffb1f0d3b85b
Merge default
src/pyams_default_theme/shared/common.py
src/pyams_default_theme/shared/templates/content-header.pt
--- a/src/pyams_default_theme/component/paragraph/verbatim.py	Thu Sep 06 17:44:38 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/verbatim.py	Thu Sep 06 18:12:27 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)