Updated paragraphs preview
authorThierry Florac <thierry.florac@onf.fr>
Fri, 02 Mar 2018 16:39:52 +0100
changeset 435 ce4ae073a7f7
parent 434 a1c31d22e042
child 436 3b92ae4b8951
Updated paragraphs preview
src/pyams_content/component/paragraph/zmi/contact.py
src/pyams_content/component/paragraph/zmi/header.py
src/pyams_content/component/paragraph/zmi/keypoint.py
--- a/src/pyams_content/component/paragraph/zmi/contact.py	Fri Mar 02 16:39:28 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/contact.py	Fri Mar 02 16:39:52 2018 +0100
@@ -173,6 +173,3 @@
 @adapter_config(context=(IContactParagraph, IPyAMSLayer), provides=IParagraphPreview)
 class ContactParagraphPreview(BaseRenderedContentPreview):
     """Contact paragraph preview"""
-
-    context_attrs = ('name', 'photo', 'gps_location', 'address')
-    i18n_context_attrs = ('title', 'charge', )
--- a/src/pyams_content/component/paragraph/zmi/header.py	Fri Mar 02 16:39:28 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/header.py	Fri Mar 02 16:39:52 2018 +0100
@@ -175,5 +175,3 @@
 @adapter_config(context=(IHeaderParagraph, IPyAMSLayer), provides=IParagraphPreview)
 class HeaderParagraphPreview(BaseRenderedContentPreview):
     """Header paragraph preview"""
-
-    i18n_context_attrs = ('header', )
--- a/src/pyams_content/component/paragraph/zmi/keypoint.py	Fri Mar 02 16:39:28 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/keypoint.py	Fri Mar 02 16:39:52 2018 +0100
@@ -175,5 +175,3 @@
 @adapter_config(context=(IKeypointsParagraph, IPyAMSLayer), provides=IParagraphPreview)
 class KeypointsParagraphPreview(BaseRenderedContentPreview):
     """Key points paragraph preview"""
-
-    i18n_context_attrs = ('body', )