|
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 from pyams_portal.interfaces import IPortletSettings |
|
20 |
|
21 # import packages |
|
22 from pyams_i18n.schema import I18nTextLineField, I18nTextField |
|
23 from zope.interface import Attribute, Interface |
|
24 |
|
25 from pyams_content import _ |
|
26 |
|
27 |
|
28 class IKeyNumberPortletSettings(IPortletSettings): |
|
29 """Key numbers portlet settings interface""" |
|
30 |
|
31 title = I18nTextLineField(title=_("Title"), |
|
32 description=_("Portlet title"), |
|
33 required=False) |
|
34 |
|
35 teaser = I18nTextField(title=_("Teaser"), |
|
36 description=_("Short text displayed above key numbers"), |
|
37 required=False) |
|
38 |
|
39 links = Attribute("Navigation links") |
|
40 |
|
41 |
|
42 class IKeyNumberPortletMenu(Interface): |
|
43 """Key numbers portlet menu marker interface""" |