add more rows to message widget

This commit is contained in:
Frédéric Péters 2011-10-07 17:22:17 -04:00
parent 30cb1879c4
commit 2044b0200b
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,10 @@ class EffectiveContactForm(form.Form):
fields['captcha'].widgetFactory = CaptchaFieldWidget
template = ViewPageTemplateFile('form_templates/view_effectivecontact.pt')
def updateWidgets(self):
super(EffectiveContactForm, self).updateWidgets()
self.widgets['message'].rows = 10
@button.buttonAndHandler(_(u'Send'))
def handleApply(self, action):
data, errors = self.extractData()