src/pyams_content/component/paragraph/audio.py
changeset 765 56e1e94a6667
parent 585 9fa8e9776bda
child 910 175416eba4bd
equal deleted inserted replaced
764:18c0fbfecaf3 765:56e1e94a6667
    42     """Audio paragraph class"""
    42     """Audio paragraph class"""
    43 
    43 
    44     icon_class = 'fa-volume-up'
    44     icon_class = 'fa-volume-up'
    45     icon_hint = AUDIO_PARAGRAPH_NAME
    45     icon_hint = AUDIO_PARAGRAPH_NAME
    46 
    46 
    47     body = FieldProperty(IAudioParagraph['body'])
    47     data = FileProperty(IAudioParagraph['data'])
    48     description = FieldProperty(IAudioParagraph['description'])
    48     description = FieldProperty(IAudioParagraph['description'])
    49     author = FieldProperty(IAudioParagraph['author'])
    49     author = FieldProperty(IAudioParagraph['author'])
    50     data = FileProperty(IAudioParagraph['data'])
       
    51     renderer = FieldProperty(IAudioParagraph['renderer'])
    50     renderer = FieldProperty(IAudioParagraph['renderer'])
    52 
    51 
    53 
    52 
    54 @utility_config(name=AUDIO_PARAGRAPH_TYPE, provides=IParagraphFactory)
    53 @utility_config(name=AUDIO_PARAGRAPH_TYPE, provides=IParagraphFactory)
    55 class AudioParagraphFactory(BaseParagraphFactory):
    54 class AudioParagraphFactory(BaseParagraphFactory):