--- a/src/pyams_content/component/paragraph/zmi/html.py Wed Sep 13 12:28:47 2017 +0200
+++ b/src/pyams_content/component/paragraph/zmi/html.py Wed Sep 13 12:30:05 2017 +0200
@@ -39,10 +39,11 @@
from pyams_form.security import ProtectedFormObjectMixin
from pyams_pagelet.pagelet import pagelet_config
from pyams_skin.viewlet.toolbar import ToolbarMenuItem
-from pyams_template.template import template_config, get_view_template
-from pyams_utils.adapter import adapter_config, ContextRequestAdapter
+from pyams_template.template import template_config
+
+from pyams_utils.adapter import adapter_config
from pyams_utils.traversing import get_parent
-from pyams_viewlet.viewlet import viewlet_config
+from pyams_viewlet.viewlet import viewlet_config, BaseContentProvider
from pyams_zmi.form import AdminDialogAddForm, AdminDialogEditForm
from pyramid.threadlocal import get_current_registry
from pyramid.view import view_config
@@ -191,8 +192,8 @@
@adapter_config(context=(IHTMLParagraph, IPyAMSLayer), provides=IParagraphSummary)
@template_config(template='templates/html-summary.pt', layer=IPyAMSLayer)
-class HTMLParagraphSummary(ContextRequestAdapter):
- """HTML paragraph renderer"""
+class HTMLParagraphSummary(BaseContentProvider):
+ """HTML paragraph summary"""
illustration = None
illustration_renderer = None
@@ -215,8 +216,6 @@
if renderer is not None:
renderer.update()
- render = get_view_template()
-
def render_illustration(self):
if not self.illustration_renderer:
return ''