src/pyams_content/component/paragraph/html.py
changeset 1157 ffb751b038cc
parent 586 28445044f6e3
child 1341 09247c61f985
--- a/src/pyams_content/component/paragraph/html.py	Wed Dec 12 11:12:59 2018 +0100
+++ b/src/pyams_content/component/paragraph/html.py	Wed Dec 12 11:14:55 2018 +0100
@@ -12,48 +12,42 @@
 
 __docformat__ = 'restructuredtext'
 
-
-# import standard library
 import re
 
-# import interfaces
-from pyams_content.component.association.interfaces import IAssociationContainer
-from pyams_content.component.extfile.interfaces import IExtFileContainerTarget, IBaseExtFile
-from pyams_content.component.illustration.interfaces import IIllustrationTarget
-from pyams_content.component.links.interfaces import ILinkContainerTarget, IInternalLink, IExternalLink, IMailtoLink
-from pyams_content.component.paragraph.interfaces import IParagraphFactory
-from pyams_content.component.paragraph.interfaces.html import \
-    RAW_PARAGRAPH_TYPE, RAW_PARAGRAPH_NAME, RAW_PARAGRAPH_RENDERERS, IRawParagraph, \
-    HTML_PARAGRAPH_TYPE, HTML_PARAGRAPH_NAME, HTML_PARAGRAPH_RENDERERS, IHTMLParagraph
-from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
-from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
-from pyams_sequence.interfaces import ISequentialIntIds
-from zope.lifecycleevent.interfaces import IObjectAddedEvent, IObjectModifiedEvent
-
-# import packages
-from pyams_content.component.links import InternalLink, ExternalLink, MailtoLink
-from pyams_content.component.paragraph import BaseParagraph, BaseParagraphContentChecker, BaseParagraphFactory
-from pyams_content.features.renderer import RenderersVocabulary
-from pyams_utils.adapter import adapter_config
-from pyams_utils.factory import factory_config
-from pyams_utils.registry import utility_config, get_utility
-from pyams_utils.request import check_request
-from pyams_utils.traversing import get_parent
-from pyams_utils.url import absolute_url
-from pyams_utils.vocabulary import vocabulary_config
 from pyquery import PyQuery
 from pyramid.events import subscriber
 from pyramid.threadlocal import get_current_registry
 from zope.interface import implementer
 from zope.lifecycleevent import ObjectCreatedEvent
+from zope.lifecycleevent.interfaces import IObjectAddedEvent, IObjectModifiedEvent
 from zope.schema.fieldproperty import FieldProperty
 
+from pyams_content.component.association.interfaces import IAssociationContainer
+from pyams_content.component.extfile.interfaces import IBaseExtFile, IExtFileContainerTarget
+from pyams_content.component.illustration.interfaces import IIllustrationTarget
+from pyams_content.component.links import ExternalLink, InternalLink, MailtoLink
+from pyams_content.component.links.interfaces import IExternalLink, IInternalLink, ILinkContainerTarget, IMailtoLink
+from pyams_content.component.paragraph import BaseParagraph, BaseParagraphContentChecker, BaseParagraphFactory
+from pyams_content.component.paragraph.interfaces import IParagraphFactory
+from pyams_content.component.paragraph.interfaces.html import HTML_PARAGRAPH_NAME, HTML_PARAGRAPH_RENDERERS, \
+    HTML_PARAGRAPH_TYPE, IHTMLParagraph, IRawParagraph, RAW_PARAGRAPH_NAME, RAW_PARAGRAPH_RENDERERS, RAW_PARAGRAPH_TYPE
+from pyams_content.features.checker.interfaces import IContentChecker, MISSING_LANG_VALUE, MISSING_VALUE
+from pyams_content.features.renderer import RenderersVocabulary
+from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
+from pyams_sequence.interfaces import ISequentialIntIds
+from pyams_utils.adapter import adapter_config
+from pyams_utils.factory import factory_config
+from pyams_utils.registry import get_utility, utility_config
+from pyams_utils.request import check_request
+from pyams_utils.traversing import get_parent
+from pyams_utils.url import absolute_url
+from pyams_utils.vocabulary import vocabulary_config
+
 
 #
 # Raw HTML paragraph
 #
 
-@implementer(IRawParagraph)
 @factory_config(provided=IRawParagraph)
 class RawParagraph(BaseParagraph):
     """Raw HTML paragraph"""
@@ -109,8 +103,8 @@
 # HTML paragraph
 #
 
-@implementer(IHTMLParagraph, IIllustrationTarget, IExtFileContainerTarget, ILinkContainerTarget)
 @factory_config(provided=IHTMLParagraph)
+@implementer(IIllustrationTarget, IExtFileContainerTarget, ILinkContainerTarget)
 class HTMLParagraph(BaseParagraph):
     """HTML paragraph"""