equal
deleted
inserted
replaced
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
10 # FOR A PARTICULAR PURPOSE. |
10 # FOR A PARTICULAR PURPOSE. |
11 # |
11 # |
12 |
12 |
13 __docformat__ = 'restructuredtext' |
13 __docformat__ = 'restructuredtext' |
|
14 |
|
15 from zope.schema.fieldproperty import FieldProperty |
14 |
16 |
15 from pyams_content.shared.common.portlet.interfaces import ISharedContentTitlePortletSettings |
17 from pyams_content.shared.common.portlet.interfaces import ISharedContentTitlePortletSettings |
16 from pyams_portal.portlet import Portlet, PortletSettings, portlet_config |
18 from pyams_portal.portlet import Portlet, PortletSettings, portlet_config |
17 from pyams_utils.factory import factory_config |
19 from pyams_utils.factory import factory_config |
18 from pyams_utils.interfaces import VIEW_PERMISSION |
20 from pyams_utils.interfaces import VIEW_PERMISSION |
25 |
27 |
26 @factory_config(provided=ISharedContentTitlePortletSettings) |
28 @factory_config(provided=ISharedContentTitlePortletSettings) |
27 class SharedContentTitlePortletSettings(PortletSettings): |
29 class SharedContentTitlePortletSettings(PortletSettings): |
28 """Shared content title portlet settings""" |
30 """Shared content title portlet settings""" |
29 |
31 |
|
32 display_publication_date = FieldProperty( |
|
33 ISharedContentTitlePortletSettings['display_publication_date']) |
|
34 publication_date_prefix = FieldProperty( |
|
35 ISharedContentTitlePortletSettings['publication_date_prefix']) |
|
36 |
30 |
37 |
31 @portlet_config(permission=VIEW_PERMISSION) |
38 @portlet_config(permission=VIEW_PERMISSION) |
32 class SharedContentTitlePortlet(Portlet): |
39 class SharedContentTitlePortlet(Portlet): |
33 """Shared content title portlet""" |
40 """Shared content title portlet""" |
34 |
41 |