# HG changeset patch # User Thierry Florac # Date 1528892828 -7200 # Node ID 6fa677b3456c5ce163ebcc749ad51357ff3c0b67 # Parent f2323704d6c3b1add84719a914e179d3dc151831 Removed view renderer diff -r f2323704d6c3 -r 6fa677b3456c src/pyams_content/shared/view/zmi/render.py --- a/src/pyams_content/shared/view/zmi/render.py Wed Jun 13 12:35:44 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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.features.renderer.interfaces import IContentRenderer -from pyams_content.shared.view.interfaces import IWfView -from pyams_skin.layer import IPyAMSLayer - -# import packages -from pyams_content.features.renderer.skin import BaseContentRenderer -from pyams_template.template import template_config -from pyams_utils.adapter import adapter_config - - -@adapter_config(name='view-render', context=(IWfView, IPyAMSLayer), provides=IContentRenderer) -@template_config(template='templates/render.pt', layer=IPyAMSLayer) -class ViewRenderer(BaseContentRenderer): - """Shared view renderer""" - - weight = 20 - - @property - def items(self): - return self.context.get_results(self.context) diff -r f2323704d6c3 -r 6fa677b3456c src/pyams_content/shared/view/zmi/templates/render.pt --- a/src/pyams_content/shared/view/zmi/templates/render.pt Wed Jun 13 12:35:44 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -
- View result items -
- WARNING: items displayed in this preview are out of context!! -
- -
-
-