src/pyams_content/component/video/paragraph.py
changeset 407 0ef5de2d5674
parent 404 0ba2bb1a692e
child 555 8e8a14452567
--- a/src/pyams_content/component/video/paragraph.py	Thu Feb 22 12:00:05 2018 +0100
+++ b/src/pyams_content/component/video/paragraph.py	Thu Feb 22 15:58:28 2018 +0100
@@ -9,7 +9,6 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 #
-from pyams_utils.traversing import get_parent
 
 __docformat__ = 'restructuredtext'
 
@@ -18,7 +17,7 @@
 
 # import interfaces
 from pyams_content.component.paragraph.interfaces import IParagraphFactory
-from pyams_content.component.video.interfaces import IExternalVideoParagraph
+from pyams_content.component.video.interfaces import IExternalVideoParagraph, EXTERNAL_VIDEO_PARAGRAPH_TYPE
 from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
 from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
 
@@ -28,6 +27,7 @@
 from pyams_utils.adapter import adapter_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 zope.interface import implementer
 from zope.schema.fieldproperty import FieldProperty
 
@@ -44,7 +44,7 @@
     body = FieldProperty(IExternalVideoParagraph['body'])
 
 
-@utility_config(name='External video', provides=IParagraphFactory)
+@utility_config(name=EXTERNAL_VIDEO_PARAGRAPH_TYPE, provides=IParagraphFactory)
 class ExternalVideoParagraphFactory(BaseParagraphFactory):
     """External video paragraph factory"""