Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 88ce860aa5bb707db4fb3b168dcdc43b7194d011 1 parent 85d5b82
authored July 16, 2010
4  CHANGES.txt
@@ -4,6 +4,10 @@ Changelog
4 4
 1.0b5 (unreleased)
5 5
 ------------------
6 6
 
  7
+* Use self.form instead of CommentForm for the CommentsViewlet update method so 
  8
+  integrators don't have to override the viewlet's update method. 
  9
+  [Matous]
  10
+
7 11
 * Make sure the form fields in the reply form are always placed under the field 
8 12
   labels. 
9 13
   [timo]
2  plone/app/discussion/browser/comments.py
@@ -205,7 +205,7 @@ class CommentsViewlet(ViewletBase):
205 205
     def update(self):
206 206
         super(CommentsViewlet, self).update()
207 207
         z2.switch_on(self, request_layer=IFormLayer)
208  
-        self.form = CommentForm(aq_inner(self.context), self.request)
  208
+        self.form = self.form(aq_inner(self.context), self.request)
209 209
         if HAS_WRAPPED_FORM: 
210 210
             alsoProvides(self.form, IWrappedForm) 
211 211
         self.form.update()

0 notes on commit 88ce860

Please sign in to comment.
Something went wrong with that request. Please try again.