Merge branch dev-dc
authorThierry Florac <thierry.florac@onf.fr>
Thu, 15 Nov 2018 14:03:07 +0100
changeset 1093 f95d237cbd68
parent 1090 d6d041577ae0 (current diff)
parent 1092 350cc7104175 (diff)
child 1094 465b273c312b
Merge branch dev-dc
src/pyams_content/component/paragraph/interfaces/milestone.py
--- a/src/pyams_content/component/paragraph/interfaces/milestone.py	Wed Nov 14 17:29:40 2018 +0100
+++ b/src/pyams_content/component/paragraph/interfaces/milestone.py	Thu Nov 15 14:03:07 2018 +0100
@@ -12,20 +12,17 @@
 
 __docformat__ = 'restructuredtext'
 
-
-# import standard library
-
 from zope.annotation.interfaces import IAttributeAnnotatable
 from zope.container.constraints import containers, contains
 from zope.interface import Interface
 from zope.schema import Bool, Choice
 
-from pyams_content import _
-# import interfaces
 from pyams_content.component.paragraph import IBaseParagraph
 from pyams_content.interfaces.container import IOrderedContainer
-# import packages
-from pyams_i18n.schema import I18nTextLineField, I18nTextField
+from pyams_i18n.schema import I18nTextField, I18nTextLineField
+
+from pyams_content import _
+
 
 MILESTONE_CONTAINER_KEY = 'pyams_content.milestones'
 
@@ -44,9 +41,9 @@
                               description=_("Milestone title"),
                               required=True)
 
-    label = I18nTextLineField(title=_("Associated label"),
-                              description=_("The way this label will be rendered depends on presentation template"),
-                              required=False)
+    label = I18nTextField(title=_("Associated label"),
+                          description=_("The way this label will be rendered depends on presentation template"),
+                          required=False)
 
     anchor = Choice(title=_("Anchor"),
                     description=_("Paragraph to which this milestone should lead"),