# HG changeset patch # User Thierry Florac # Date 1519986279 -3600 # Node ID 81e4e9b9cde2b6614853e07eadc779bbd480f239 # Parent f09842eb4ada483850ead227956b449bde865b1f Moved renderers to pyams_default_theme package diff -r f09842eb4ada -r 81e4e9b9cde2 src/pyams_content/component/gallery/zmi/renderer.py --- a/src/pyams_content/component/gallery/zmi/renderer.py Fri Mar 02 11:24:02 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -# -# Copyright (c) 2008-2015 Thierry Florac -# All Rights Reserved. -# -# This software is subject to the provisions of the Zope Public License, -# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED -# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS -# FOR A PARTICULAR PURPOSE. -# - -__docformat__ = 'restructuredtext' - - -# import standard library - -# import interfaces -from pyams_content.component.gallery import IGallery -from pyams_content.features.renderer.interfaces import IContentRenderer -from pyams_skin.layer import IPyAMSLayer - -# import packages -from pyams_content.features.renderer.zmi import BaseContentRenderer -from pyams_template.template import template_config -from pyams_utils.adapter import adapter_config - -from pyams_content import _ - - -class BaseGalleryRenderer(BaseContentRenderer): - """Base gallery renderer""" - - -@adapter_config(name='default', context=(IGallery, IPyAMSLayer), provides=IContentRenderer) -@template_config(template='templates/renderer-default.pt', layer=IPyAMSLayer) -class DefaultGalleryRenderer(BaseGalleryRenderer): - """Default gallery renderer""" - - label = _("Default gallery renderer") - weight = 1 diff -r f09842eb4ada -r 81e4e9b9cde2 src/pyams_content/component/gallery/zmi/templates/renderer-default.pt --- a/src/pyams_content/component/gallery/zmi/templates/renderer-default.pt Fri Mar 02 11:24:02 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -
- - - - - - - - - -
diff -r f09842eb4ada -r 81e4e9b9cde2 src/pyams_content/component/illustration/zmi/interfaces.py --- a/src/pyams_content/component/illustration/zmi/interfaces.py Fri Mar 02 11:24:02 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -# -# Copyright (c) 2008-2015 Thierry Florac -# All Rights Reserved. -# -# This software is subject to the provisions of the Zope Public License, -# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED -# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS -# FOR A PARTICULAR PURPOSE. -# - -__docformat__ = 'restructuredtext' - -# import standard library - -# import interfaces - -# import packages -from zope.interface import Interface -from zope.schema import Bool - -from pyams_content import _ - - -class IIllustrationWithZoomSettings(Interface): - """Illustration with zoom interface""" - - zoom_on_click = Bool(title=_("Zoom on click?"), - description=_("If 'yes', a click on illustration thumbnail is required to zoom"), - required=True, - default=True) diff -r f09842eb4ada -r 81e4e9b9cde2 src/pyams_content/component/illustration/zmi/templates/renderer-default.pt --- a/src/pyams_content/component/illustration/zmi/templates/renderer-default.pt Fri Mar 02 11:24:02 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -
- - - - - - - - legend -
diff -r f09842eb4ada -r 81e4e9b9cde2 src/pyams_content/component/illustration/zmi/templates/renderer-left.pt --- a/src/pyams_content/component/illustration/zmi/templates/renderer-left.pt Fri Mar 02 11:24:02 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ - diff -r f09842eb4ada -r 81e4e9b9cde2 src/pyams_content/component/illustration/zmi/templates/renderer-right.pt --- a/src/pyams_content/component/illustration/zmi/templates/renderer-right.pt Fri Mar 02 11:24:02 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -