src/pyams_content/component/paragraph/interfaces/keypoint.py
changeset 416 c848b7ceefb7
parent 411 d2425a3c3a49
child 421 20a2b671ade1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_content/component/paragraph/interfaces/keypoint.py	Fri Mar 02 11:22:56 2018 +0100
@@ -0,0 +1,39 @@
+#
+# Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+
+__docformat__ = 'restructuredtext'
+
+
+# import standard library
+
+# import interfaces
+from pyams_content.component.paragraph.interfaces import IBaseParagraph
+
+# import packages
+from pyams_i18n.schema import I18nTextField
+
+from pyams_content import _
+
+
+#
+# Keypoints paragraph
+#
+
+KEYPOINTS_PARAGRAPH_TYPE = 'Keypoints'
+
+
+class IKeypointsParagraph(IBaseParagraph):
+    """Keypoints paragraph"""
+
+    body = I18nTextField(title=_("Key points"),
+                         description=_("Enter one key point by line, without hyphen or prefix"),
+                         required=False)