equal
deleted
inserted
replaced
|
1 # |
|
2 # Copyright (c) 2008-2019 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 from pyams_content.shared.imagemap import IMAGEMAP_CONTENT_TYPE |
|
14 from pyams_i18n.schema import I18nTextLineField |
|
15 from pyams_portal.interfaces import IPortletSettings |
|
16 from pyams_sequence.interfaces import IInternalReference |
|
17 from pyams_sequence.schema import InternalReferenceField |
|
18 |
|
19 |
|
20 __docformat__ = 'restructuredtext' |
|
21 |
|
22 from pyams_content import _ |
|
23 |
|
24 |
|
25 class IImageMapPortletSettings(IPortletSettings, IInternalReference): |
|
26 """Image map portlet settings interface""" |
|
27 |
|
28 title = I18nTextLineField(title=_("Title"), |
|
29 required=False) |
|
30 |
|
31 reference = InternalReferenceField(title=_("Internal reference"), |
|
32 description=_("Reference to image map object"), |
|
33 content_type=IMAGEMAP_CONTENT_TYPE) |