# HG changeset patch # User Thierry Florac # Date 1531235038 -7200 # Node ID 90b84b6b8caf616f1e6efda349aa7262b7746159 # Parent 9563247eb2f1ab8bfe42a55f106a8da7dac49eb4# Parent 29e43fc3a6a0a51b4cedc2a6d53b2d373263fe27 Merge branch dev-dc diff -r 29e43fc3a6a0 -r 90b84b6b8caf src/pyams_default_theme/component/keynumber/portlet/__init__.py --- a/src/pyams_default_theme/component/keynumber/portlet/__init__.py Tue Jul 10 12:20:13 2018 +0200 +++ b/src/pyams_default_theme/component/keynumber/portlet/__init__.py Tue Jul 10 17:03:58 2018 +0200 @@ -32,7 +32,7 @@ from pyams_default_theme import _ -class KeyNumberPortletDefaultRenderer(PortletRenderer): +class KeyNumberPortletBaseRenderer(PortletRenderer): """Key numbers portlet default renderer""" def get_link_info(cls, link): @@ -49,7 +49,7 @@ @adapter_config(context=(IPortalContext, IPyAMSLayer, Interface, IKeyNumberPortletSettings), provides=IPortletRenderer) @template_config(template='templates/horizontal-render.pt', layer=IPyAMSLayer) -class KeyNumberPortletHorizontalRenderer(KeyNumberPortletDefaultRenderer): +class KeyNumberPortletHorizontalRenderer(KeyNumberPortletBaseRenderer): """Key numbers portlet horizontal renderer""" label = _("Horizontal list with carousel") @@ -58,7 +58,7 @@ @adapter_config(name='vertical', context=(IPortalContext, IPyAMSLayer, Interface, IKeyNumberPortletSettings), provides=IPortletRenderer) @template_config(template='templates/vertical-render.pt', layer=IPyAMSLayer) -class KeyNumberPortletVerticalRenderer(KeyNumberPortletDefaultRenderer): +class KeyNumberPortletVerticalRenderer(KeyNumberPortletBaseRenderer): """Key numbers portlet vertical renderer""" label = _("Vertical list")