|
1 # |
|
2 # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> |
|
3 # All Rights Reserved. |
|
4 # |
|
5 # This software is subject to the provisions of the Zope Public License, |
|
6 # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. |
|
7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED |
|
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
|
10 # FOR A PARTICULAR PURPOSE. |
|
11 # |
|
12 |
|
13 __docformat__ = 'restructuredtext' |
|
14 |
|
15 |
|
16 # import standard library |
|
17 |
|
18 # import interfaces |
|
19 |
|
20 # import packages |
|
21 from pyams_file.schema import FileField |
|
22 from pyams_i18n.schema import I18nTextField |
|
23 from zope.interface import Interface |
|
24 from zope.schema import TextLine |
|
25 |
|
26 from pyams_content import _ |
|
27 |
|
28 |
|
29 class IGalleryImageAddFields(Interface): |
|
30 """Gallery image add fields""" |
|
31 |
|
32 author = TextLine(title=_("Author"), |
|
33 required=False) |
|
34 |
|
35 author_comments = I18nTextField(title=_("Author comments"), |
|
36 description=_("Comments relatives to author's rights management"), |
|
37 required=False) |
|
38 |
|
39 images_data = FileField(title=_("Images data"), |
|
40 description=_("You can upload a single file or choose to upload a whole ZIP archive"), |
|
41 required=False) |