equal
deleted
inserted
replaced
13 __docformat__ = 'restructuredtext' |
13 __docformat__ = 'restructuredtext' |
14 |
14 |
15 |
15 |
16 # import standard library |
16 # import standard library |
17 |
17 |
|
18 from zope.schema import TextLine, Choice |
|
19 |
|
20 from pyams_content import _ |
18 # import interfaces |
21 # import interfaces |
19 from pyams_content.component.paragraph.interfaces import IBaseParagraph |
22 from pyams_content.component.paragraph.interfaces import IBaseParagraph |
20 |
|
21 # import packages |
23 # import packages |
22 from pyams_file.schema import VideoField |
24 from pyams_file.schema import VideoField |
23 from pyams_i18n.schema import I18nTextField, I18nTextLineField |
25 from pyams_i18n.schema import I18nTextField, I18nTextLineField |
24 from zope.schema import TextLine, Choice |
|
25 |
|
26 from pyams_content import _ |
|
27 |
|
28 |
26 |
29 # |
27 # |
30 # HTML paragraph |
28 # HTML paragraph |
31 # |
29 # |
32 |
30 |
43 required=True) |
41 required=True) |
44 |
42 |
45 title = I18nTextLineField(title=_("Legend"), |
43 title = I18nTextLineField(title=_("Legend"), |
46 required=False) |
44 required=False) |
47 |
45 |
|
46 author = TextLine(title=_("Author"), |
|
47 description=_("Name of document's author"), |
|
48 required=True) |
|
49 |
48 description = I18nTextField(title=_("Associated text"), |
50 description = I18nTextField(title=_("Associated text"), |
49 description=_("Video description displayed by front-office template"), |
51 description=_("Video description displayed by front-office template"), |
50 required=False) |
52 required=False) |
51 |
|
52 author = TextLine(title=_("Author"), |
|
53 description=_("Name of document's author"), |
|
54 required=True) |
|
55 |
53 |
56 renderer = Choice(title=_("Video template"), |
54 renderer = Choice(title=_("Video template"), |
57 description=_("Presentation template used for this video"), |
55 description=_("Presentation template used for this video"), |
58 vocabulary=VIDEO_PARAGRAPH_RENDERERS, |
56 vocabulary=VIDEO_PARAGRAPH_RENDERERS, |
59 default='default') |
57 default='default') |