--- a/src/pyams_content/component/association/paragraph.py Tue Feb 06 11:16:23 2018 +0100
+++ b/src/pyams_content/component/association/paragraph.py Tue Feb 06 11:16:42 2018 +0100
@@ -24,7 +24,7 @@
from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
# import packages
-from pyams_content.component.paragraph import BaseParagraph, BaseParagraphContentChecker
+from pyams_content.component.paragraph import BaseParagraph, BaseParagraphContentChecker, BaseParagraphFactory
from pyams_utils.adapter import adapter_config
from pyams_utils.registry import utility_config, get_utility
from pyams_utils.request import check_request
@@ -43,7 +43,7 @@
@utility_config(name='Associations', provides=IParagraphFactory)
-class AssociationParagraphFactory(object):
+class AssociationParagraphFactory(BaseParagraphFactory):
"""Associations paragraph factory"""
name = _("Associations paragraph")
--- a/src/pyams_content/component/gallery/paragraph.py Tue Feb 06 11:16:23 2018 +0100
+++ b/src/pyams_content/component/gallery/paragraph.py Tue Feb 06 11:16:42 2018 +0100
@@ -23,7 +23,7 @@
# import packages
from pyams_content.component.gallery import Gallery as BaseGallery
-from pyams_content.component.paragraph import BaseParagraph, BaseParagraphContentChecker
+from pyams_content.component.paragraph import BaseParagraph, BaseParagraphContentChecker, BaseParagraphFactory
from pyams_utils.adapter import adapter_config
from pyams_utils.registry import utility_config, get_utility
from pyams_utils.traversing import get_parent
@@ -41,7 +41,7 @@
@utility_config(name='Gallery', provides=IParagraphFactory)
-class GalleryFactory(object):
+class GalleryFactory(BaseParagraphFactory):
"""Gallery paragraph factory"""
name = _("Images gallery")
--- a/src/pyams_content/component/illustration/paragraph.py Tue Feb 06 11:16:23 2018 +0100
+++ b/src/pyams_content/component/illustration/paragraph.py Tue Feb 06 11:16:42 2018 +0100
@@ -23,7 +23,7 @@
# import packages
from pyams_content.component.illustration import Illustration as BaseIllustration, IllustrationContentChecker
-from pyams_content.component.paragraph import BaseParagraph
+from pyams_content.component.paragraph import BaseParagraph, BaseParagraphFactory
from pyams_utils.adapter import adapter_config
from pyams_utils.registry import utility_config
from pyams_utils.request import check_request
@@ -41,7 +41,7 @@
@utility_config(name='Illustration', provides=IParagraphFactory)
-class IllustrationFactory(object):
+class IllustrationFactory(BaseParagraphFactory):
"""Illustration paragraph factory"""
name = _("Illustration")
--- a/src/pyams_content/shared/imagemap/paragraph.py Tue Feb 06 11:16:23 2018 +0100
+++ b/src/pyams_content/shared/imagemap/paragraph.py Tue Feb 06 11:16:42 2018 +0100
@@ -23,7 +23,7 @@
from pyams_workflow.interfaces import IWorkflow
# import packages
-from pyams_content.component.paragraph import BaseParagraph, BaseParagraphContentChecker
+from pyams_content.component.paragraph import BaseParagraph, BaseParagraphContentChecker, BaseParagraphFactory
from pyams_sequence.utility import get_reference_target
from pyams_utils.adapter import adapter_config
from pyams_utils.registry import utility_config, get_utility
@@ -48,7 +48,7 @@
@utility_config(name='ImageMap', provides=IParagraphFactory)
-class ImageMapParagraphFactory(object):
+class ImageMapParagraphFactory(BaseParagraphFactory):
"""Image map paragraph factory"""
name = _("Image map")