src/pyams_content/component/gallery/paragraph.py
changeset 363 86d1a240d4dc
parent 356 9922023810d3
child 407 0ef5de2d5674
equal deleted inserted replaced
362:8fc21a7ef206 363:86d1a240d4dc
    35 @implementer(IGalleryParagraph)
    35 @implementer(IGalleryParagraph)
    36 class Gallery(BaseGallery, BaseParagraph):
    36 class Gallery(BaseGallery, BaseParagraph):
    37     """Gallery class"""
    37     """Gallery class"""
    38 
    38 
    39     icon_class = 'fa-picture-o'
    39     icon_class = 'fa-picture-o'
    40     icon_hint = _("Images gallery")
    40     icon_hint = _("Medias gallery")
    41 
    41 
    42 
    42 
    43 @utility_config(name='Gallery', provides=IParagraphFactory)
    43 @utility_config(name='Gallery', provides=IParagraphFactory)
    44 class GalleryFactory(BaseParagraphFactory):
    44 class GalleryFactory(BaseParagraphFactory):
    45     """Gallery paragraph factory"""
    45     """Gallery paragraph factory"""
    46 
    46 
    47     name = _("Images gallery")
    47     name = _("Medias gallery")
    48     content_type = Gallery
    48     content_type = Gallery
    49 
    49 
    50 
    50 
    51 @adapter_config(context=IGalleryParagraph, provides=IContentChecker)
    51 @adapter_config(context=IGalleryParagraph, provides=IContentChecker)
    52 class GalleryParagraphContentChecker(BaseParagraphContentChecker):
    52 class GalleryParagraphContentChecker(BaseParagraphContentChecker):