From 845da052d5afc320b94befcd61a3436fbcd353cf Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Thu, 28 Jan 2016 12:28:11 +0100 Subject: [PATCH] Adapt to changed Zope 4 broser:view semantics. We either need a template ZCML argument or a __call__ method on the class. --- CHANGES.rst | 3 ++- plone/app/layout/viewlets/content.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index a12afb11..26827e53 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,7 +11,8 @@ New: Fixes: -- *add item here* +- Adapt to changed Zope 4 ``broser:view`` semantics. We either need a ``template`` ZCML argument or a ``__call__`` method on the class. + [thet] 2.5.17 (2015-11-26) diff --git a/plone/app/layout/viewlets/content.py b/plone/app/layout/viewlets/content.py index 615d78fb..e9afc21d 100644 --- a/plone/app/layout/viewlets/content.py +++ b/plone/app/layout/viewlets/content.py @@ -511,8 +511,9 @@ def toLocalizedTime(self, time, long_format=None, time_only=None): class ContentHistoryView(ContentHistoryViewlet): - index = ViewPageTemplateFile("content_history.pt") - def __init__(self, context, request): super(ContentHistoryView, self).__init__(context, request, None, None) self.update() + + def __call__(self): + return self.index()