src/pyams_content/component/paragraph/html.py
changeset 0 7c0001cacf8e
child 140 67bad9f880ee
equal deleted inserted replaced
-1:000000000000 0:7c0001cacf8e
       
     1 #
       
     2 # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
       
     3 # All Rights Reserved.
       
     4 #
       
     5 # This software is subject to the provisions of the Zope Public License,
       
     6 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
       
     7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
       
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
       
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
       
    10 # FOR A PARTICULAR PURPOSE.
       
    11 #
       
    12 
       
    13 __docformat__ = 'restructuredtext'
       
    14 
       
    15 
       
    16 # import standard library
       
    17 
       
    18 # import interfaces
       
    19 from pyams_content.component.extfile.interfaces import IExtFileLinksContainerTarget
       
    20 from pyams_content.component.gallery.interfaces import IGalleryLinksContainerTarget
       
    21 from pyams_content.component.links.interfaces import ILinkLinksContainerTarget
       
    22 from pyams_content.component.paragraph.interfaces import IHTMLParagraph
       
    23 
       
    24 # import packages
       
    25 from pyams_content.component.paragraph import BaseParagraph
       
    26 from zope.interface import implementer
       
    27 from zope.schema.fieldproperty import FieldProperty
       
    28 
       
    29 
       
    30 #
       
    31 # HTML paragraph
       
    32 #
       
    33 
       
    34 @implementer(IHTMLParagraph, IExtFileLinksContainerTarget, ILinkLinksContainerTarget, IGalleryLinksContainerTarget)
       
    35 class HTMLParagraph(BaseParagraph):
       
    36     """HTML paragraph"""
       
    37 
       
    38     body = FieldProperty(IHTMLParagraph['body'])