equal
deleted
inserted
replaced
17 |
17 |
18 # import interfaces |
18 # import interfaces |
19 from pyams_content.component.extfile.interfaces import IExtFileContainerTarget |
19 from pyams_content.component.extfile.interfaces import IExtFileContainerTarget |
20 from pyams_content.component.links.interfaces import ILinkContainerTarget |
20 from pyams_content.component.links.interfaces import ILinkContainerTarget |
21 from pyams_content.component.paragraph.interfaces import IParagraphFactory |
21 from pyams_content.component.paragraph.interfaces import IParagraphFactory |
22 from pyams_content.component.paragraph.interfaces.video import IVideoParagraph |
22 from pyams_content.component.paragraph.interfaces.video import IVideoParagraph, VIDEO_PARAGRAPH_TYPE |
23 from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE |
23 from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE |
24 from pyams_i18n.interfaces import II18nManager, INegotiator, II18n |
24 from pyams_i18n.interfaces import II18nManager, INegotiator, II18n |
25 from zope.lifecycleevent.interfaces import IObjectAddedEvent, IObjectModifiedEvent |
25 from zope.lifecycleevent.interfaces import IObjectAddedEvent, IObjectModifiedEvent |
26 |
26 |
27 # import packages |
27 # import packages |
49 description = FieldProperty(IVideoParagraph['description']) |
49 description = FieldProperty(IVideoParagraph['description']) |
50 author = FieldProperty(IVideoParagraph['author']) |
50 author = FieldProperty(IVideoParagraph['author']) |
51 data = FileProperty(IVideoParagraph['data']) |
51 data = FileProperty(IVideoParagraph['data']) |
52 |
52 |
53 |
53 |
54 @utility_config(name='Video', provides=IParagraphFactory) |
54 @utility_config(name=VIDEO_PARAGRAPH_TYPE, provides=IParagraphFactory) |
55 class VideoParagraphFactory(BaseParagraphFactory): |
55 class VideoParagraphFactory(BaseParagraphFactory): |
56 """Video paragraph factory""" |
56 """Video paragraph factory""" |
57 |
57 |
58 name = _("Video") |
58 name = _("Video") |
59 content_type = VideoParagraph |
59 content_type = VideoParagraph |