Make form field annotatable
authorThierry Florac <thierry.florac@onf.fr>
Mon, 15 Jul 2019 17:55:23 +0200
changeset 1332 f580241925b7
parent 1331 8baa284854ba
child 1333 e10cf8795ff2
Make form field annotatable
src/pyams_content/shared/form/interfaces.py
--- a/src/pyams_content/shared/form/interfaces.py	Mon Jul 15 16:52:34 2019 +0200
+++ b/src/pyams_content/shared/form/interfaces.py	Mon Jul 15 17:55:23 2019 +0200
@@ -10,24 +10,22 @@
 # FOR A PARTICULAR PURPOSE.
 #
 
-__docformat__ = 'restructuredtext'
-
-
-# import standard library
-
 from zope.annotation.interfaces import IAttributeAnnotatable
 from zope.container.constraints import containers, contains
-from zope.container.interfaces import IContainer, IContained
-from zope.interface import Interface, Attribute
-from zope.schema import TextLine, Choice, Bool
+from zope.container.interfaces import IContained, IContainer
+from zope.interface import Attribute, Interface
+from zope.schema import Bool, Choice, TextLine
+
+from pyams_content.shared.common.interfaces import ISharedContent, ISharedToolPortalContext, \
+    IWfSharedContentPortalContext
+from pyams_i18n.schema import I18nTextField, I18nTextLineField
+from pyams_utils.schema import MailAddressField, TextLineListField
+
+
+__docformat__ = 'restructuredtext'
 
 from pyams_content import _
-# import interfaces
-from pyams_content.shared.common.interfaces import ISharedContent, IWfSharedContentPortalContext, \
-    ISharedToolPortalContext
-# import packages
-from pyams_i18n.schema import I18nTextLineField, I18nTextField
-from pyams_utils.schema import MailAddressField, TextLineListField
+
 
 FORM_CONTENT_TYPE = 'form'
 FORM_CONTENT_NAME = _('Form')
@@ -43,7 +41,7 @@
     """Forms manager factory interface"""
 
 
-class IFormField(IContained):
+class IFormField(IContained, IAttributeAnnotatable):
     """Form field interface"""
 
     containers('.IFormFieldContainer')