Skip to content

Commit

Permalink
Merge pull request #77 from plone/thet-zope4
Browse files Browse the repository at this point in the history
Zope4
  • Loading branch information
thet committed Jan 29, 2016
2 parents de1c25c + 845da05 commit 3961968
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions plone/app/layout/viewlets/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 3961968

Please sign in to comment.