--- 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)