Compatibility with Zope 2.12: don't wrap the ViewPageTemplate into an acquisition wrapper.
svn path=/plone.app.discussion/trunk/; revision=29201
This commit is contained in:
parent
e946ef7979
commit
06b332a801
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user