16 # import standard library |
16 # import standard library |
17 |
17 |
18 # import interfaces |
18 # import interfaces |
19 |
19 |
20 # import packages |
20 # import packages |
21 from pyams_file.schema import ImageField |
21 from pyams_file.schema import FileField |
22 from pyams_i18n.schema import I18nTextField |
22 from pyams_i18n.schema import I18nTextField |
23 from zope.interface import Interface |
23 from zope.interface import Interface |
24 from zope.schema import TextLine |
24 from zope.schema import TextLine |
25 |
25 |
26 from pyams_content import _ |
26 from pyams_content import _ |
27 |
27 |
28 |
28 |
29 class IGalleryImagesView(Interface): |
29 class IGalleryContentsView(Interface): |
30 """Marker interface for gallery contents view""" |
30 """Marker interface for gallery contents view""" |
31 |
31 |
32 |
32 |
33 class IGalleryImageAddFields(Interface): |
33 class IGalleryMediasAddFields(Interface): |
34 """Gallery image add fields""" |
34 """Gallery medias add fields""" |
35 |
35 |
36 author = TextLine(title=_("Author"), |
36 author = TextLine(title=_("Author"), |
37 description=_("Name of document's author"), |
37 description=_("Name of document's author"), |
38 required=False) |
38 required=False) |
39 |
39 |
40 author_comments = I18nTextField(title=_("Author comments"), |
40 author_comments = I18nTextField(title=_("Author comments"), |
41 description=_("Comments relatives to author's rights management"), |
41 description=_("Comments relatives to author's rights management"), |
42 required=False) |
42 required=False) |
43 |
43 |
44 images_data = ImageField(title=_("Images or videos data"), |
44 medias_data = FileField(title=_("Images or videos data"), |
45 description=_("You can upload a single file or choose to upload a whole ZIP archive"), |
45 description=_("You can upload a single file or choose to upload a whole ZIP archive"), |
46 required=True) |
46 required=True) |