Removed unused registry
authorThierry Florac <thierry.florac@onf.fr>
Thu, 15 Feb 2018 15:10:27 +0100
changeset 396 a6c3d1974420
parent 395 2a39b333a585
child 397 fe989328a54f
Removed unused registry
src/pyams_content/component/paragraph/zmi/html.py
--- a/src/pyams_content/component/paragraph/zmi/html.py	Thu Feb 15 15:08:29 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/html.py	Thu Feb 15 15:10:27 2018 +0100
@@ -44,7 +44,6 @@
 from pyams_utils.traversing import get_parent
 from pyams_viewlet.viewlet import viewlet_config, BaseContentProvider
 from pyams_zmi.form import AdminDialogAddForm
-from pyramid.threadlocal import get_current_registry
 from pyramid.view import view_config
 from z3c.form import field, button
 from zope.interface import implementer, Interface
@@ -353,7 +352,6 @@
                 setattr(self, attr, i18n.query_attribute(attr, request=self.request))
         self.illustration = IIllustration(self.context)
         if self.illustration.data:
-            registry = get_current_registry()
             renderer = self.illustration_renderer = self.illustration.get_renderer()
             if renderer is not None:
                 renderer.update()