From f3cf5dcf91b8af7a0efa456bc51041d7f7c3f346 Mon Sep 17 00:00:00 2001 From: Tom Gross Date: Tue, 20 Sep 2016 11:41:22 +0200 Subject: [PATCH 1/3] Fix for #48 --- plone/app/standardtiles/existingcontent.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plone/app/standardtiles/existingcontent.py b/plone/app/standardtiles/existingcontent.py index 1796c132..7bc5ca1e 100644 --- a/plone/app/standardtiles/existingcontent.py +++ b/plone/app/standardtiles/existingcontent.py @@ -120,4 +120,14 @@ def item_panels(self): def __getattr__(self, name): # proxy attributes for this view to the selected view of the content # item so views work + if name in ('data', + 'content_context', + 'default_view', + 'item_macros', + 'item_panels', + 'getPhysicalPath', + 'index_html', + ) or name.startswith(('_', 'im_', 'func_')): + return Tile.__getattr__(self, name) return getattr(self.default_view, name) + From 62cd90fcea514452b61bd596dc4acd091233e1cf Mon Sep 17 00:00:00 2001 From: Tom Gross Date: Tue, 20 Sep 2016 09:43:10 +0000 Subject: [PATCH 2/3] document changes --- CHANGES.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 13b37593..17067cec 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 2.0.0rc2 (unreleased) --------------------- -- Nothing changed yet. +- Fix recursion loop in existingcontent tile (#48) + [tomgross] 2.0.0rc1 (2016-09-15) From e639159191810c3c150ac3d96febb27f5cddac1f Mon Sep 17 00:00:00 2001 From: Asko Soukka Date: Tue, 20 Sep 2016 12:52:59 +0300 Subject: [PATCH 3/3] Flake8 --- plone/app/standardtiles/existingcontent.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plone/app/standardtiles/existingcontent.py b/plone/app/standardtiles/existingcontent.py index 7bc5ca1e..87f32bc1 100644 --- a/plone/app/standardtiles/existingcontent.py +++ b/plone/app/standardtiles/existingcontent.py @@ -130,4 +130,3 @@ def __getattr__(self, name): ) or name.startswith(('_', 'im_', 'func_')): return Tile.__getattr__(self, name) return getattr(self.default_view, name) -