From 06b332a801691e950f3d997a0477251eedc34487 Mon Sep 17 00:00:00 2001 From: Carsten Senger Date: Thu, 20 Aug 2009 02:09:53 +0000 Subject: [PATCH] Compatibility with Zope 2.12: don't wrap the ViewPageTemplate into an acquisition wrapper. svn path=/plone.app.discussion/trunk/; revision=29201 --- plone/app/discussion/browser/comments.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)