src/pyams_content/component/paragraph/interfaces/html.py
changeset 407 0ef5de2d5674
parent 355 5dce53509832
child 555 8e8a14452567
equal deleted inserted replaced
406:5527bc086216 407:0ef5de2d5674
    26 
    26 
    27 #
    27 #
    28 # Raw HTML paragraph
    28 # Raw HTML paragraph
    29 #
    29 #
    30 
    30 
       
    31 RAW_PARAGRAPH_TYPE = 'raw'
       
    32 
       
    33 
    31 class IRawParagraph(IBaseParagraph):
    34 class IRawParagraph(IBaseParagraph):
    32     """Raw HTML paragraph interface"""
    35     """Raw HTML paragraph interface"""
    33 
    36 
    34     body = I18nTextField(title=_("Raw HTML code"),
    37     body = I18nTextField(title=_("Raw HTML code"),
    35                          description=_("This HTML code will be used 'as is', without any transformation. Use with "
    38                          description=_("This HTML code will be used 'as is', without any transformation. Use with "
    39 
    42 
    40 #
    43 #
    41 # HTML paragraph
    44 # HTML paragraph
    42 #
    45 #
    43 
    46 
       
    47 HTML_PARAGRAPH_TYPE = 'HTML'
       
    48 
       
    49 
    44 class IHTMLParagraph(IBaseParagraph):
    50 class IHTMLParagraph(IBaseParagraph):
    45     """Rich text paragraph interface"""
    51     """Rich text paragraph interface"""
    46 
    52 
    47     body = I18nHTMLField(title=_("Body"),
    53     body = I18nHTMLField(title=_("Body"),
    48                          required=False)
    54                          required=False)