--- a/src/pyams_content/component/paragraph/html.py Thu Feb 22 12:00:05 2018 +0100
+++ b/src/pyams_content/component/paragraph/html.py Thu Feb 22 15:58:28 2018 +0100
@@ -22,7 +22,8 @@
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 IRawParagraph, IHTMLParagraph
+from pyams_content.component.paragraph.interfaces.html import RAW_PARAGRAPH_TYPE, IRawParagraph, HTML_PARAGRAPH_TYPE, \
+ IHTMLParagraph
from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
from zope.lifecycleevent.interfaces import IObjectAddedEvent, IObjectModifiedEvent
@@ -59,13 +60,12 @@
body = FieldProperty(IRawParagraph['body'])
-@utility_config(name='raw', provides=IParagraphFactory)
+@utility_config(name=RAW_PARAGRAPH_TYPE, provides=IParagraphFactory)
class RawParagraphFactory(BaseParagraphFactory):
"""Raw paragraph factory"""
name = _("Raw HTML paragraph")
content_type = RawParagraph
- custom_menu = True
@adapter_config(context=IRawParagraph, provides=IContentChecker)
@@ -107,7 +107,7 @@
body = FieldProperty(IHTMLParagraph['body'])
-@utility_config(name='HTML', provides=IParagraphFactory)
+@utility_config(name=HTML_PARAGRAPH_TYPE, provides=IParagraphFactory)
class HTMLParagraphFactory(BaseParagraphFactory):
"""HTML paragraph factory"""