diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index bb6f541..e23fa61 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -279,8 +279,7 @@ class CommentsViewlet(ViewletBase, layout.FormWrapper): form = CommentForm - def index(self): - return ViewPageTemplateFile('comments.pt').__of__(self)(self) + index = ViewPageTemplateFile('comments.pt') def __init__(self, context, request, view, manager): super(CommentsViewlet, self).__init__(context, request, view, manager) @@ -375,4 +374,4 @@ class CommentsViewlet(ViewletBase, layout.FormWrapper): # before we can call toLocalizedTime. util = getToolByName(self.context, 'translation_service') zope_time = DateTime(time.year, time.month, time.day, time.hour, time.minute, time.second) - return util.toLocalizedTime(zope_time, long_format=True) \ No newline at end of file + return util.toLocalizedTime(zope_time, long_format=True)