Use self.form instead of CommentForm for the CommentsViewlet update method so integrators don't have to override the viewlet's update method. [Matous]
svn path=/plone.app.discussion/trunk/; revision=37916
This commit is contained in:
parent
85d5b823b0
commit
88ce860aa5
@ -4,6 +4,10 @@ Changelog
|
||||
1.0b5 (unreleased)
|
||||
------------------
|
||||
|
||||
* Use self.form instead of CommentForm for the CommentsViewlet update method so
|
||||
integrators don't have to override the viewlet's update method.
|
||||
[Matous]
|
||||
|
||||
* Make sure the form fields in the reply form are always placed under the field
|
||||
labels.
|
||||
[timo]
|
||||
|
@ -205,7 +205,7 @@ class CommentsViewlet(ViewletBase):
|
||||
def update(self):
|
||||
super(CommentsViewlet, self).update()
|
||||
z2.switch_on(self, request_layer=IFormLayer)
|
||||
self.form = CommentForm(aq_inner(self.context), self.request)
|
||||
self.form = self.form(aq_inner(self.context), self.request)
|
||||
if HAS_WRAPPED_FORM:
|
||||
alsoProvides(self.form, IWrappedForm)
|
||||
self.form.update()
|
||||
|
Loading…
Reference in New Issue
Block a user