--- a/src/pyams_content/component/paragraph/interfaces/html.py Thu Nov 29 15:35:49 2018 +0100
+++ b/src/pyams_content/component/paragraph/interfaces/html.py Fri Nov 30 12:31:21 2018 +0100
@@ -12,15 +12,10 @@
__docformat__ = 'restructuredtext'
+from zope.schema import Choice
-# import standard library
-
-# import interfaces
from pyams_content.component.paragraph.interfaces import IBaseParagraph
-
-# import packages
from pyams_i18n.schema import I18nHTMLField, I18nTextField
-from zope.schema import Choice
from pyams_content import _
@@ -30,19 +25,19 @@
#
RAW_PARAGRAPH_TYPE = 'raw'
-RAW_PARAGRAPH_NAME = _("Raw HTML ")
+RAW_PARAGRAPH_NAME = _("Raw source")
RAW_PARAGRAPH_RENDERERS = 'PyAMS.paragraph.raw.renderers'
class IRawParagraph(IBaseParagraph):
"""Raw HTML paragraph interface"""
- body = I18nTextField(title=_("Raw HTML code"),
- description=_("This HTML code will be used 'as is', without any transformation. Use with "
- "care!!"),
+ body = I18nTextField(title=_("Source code"),
+ description=_("This code will be used 'as is', without any transformation, if using the "
+ "'raw' renderer. Use with care!!"),
required=False)
- renderer = Choice(title=_("Raw HTML code template"),
+ renderer = Choice(title=_("Source code template"),
description=_("Presentation template used for this paragraph"),
vocabulary=RAW_PARAGRAPH_RENDERERS,
default='default')