Permalink
Browse files

Use self.form instead of CommentForm for the CommentsViewlet update m…

…ethod so integrators don't have to override the viewlet's update method. [Matous]

svn path=/plone.app.discussion/trunk/; revision=37916
  • Loading branch information...
Timo Stollenwerk
Timo Stollenwerk committed Jul 16, 2010
1 parent 85d5b82 commit 88ce860aa5bb707db4fb3b168dcdc43b7194d011
Showing with 5 additions and 1 deletion.
  1. +4 −0 CHANGES.txt
  2. +1 −1 plone/app/discussion/browser/comments.py
View
@@ -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()

0 comments on commit 88ce860

Please sign in to comment.