web/formwidgets.py
changeset 4376 839b28a3652e
parent 4375 6d34e3cf60a3
child 4382 6fb02edd05da
equal deleted inserted replaced
4375:6d34e3cf60a3 4376:839b28a3652e
   745         if self.settabindex:
   745         if self.settabindex:
   746             attrs['tabindex'] = req.next_tabindex()
   746             attrs['tabindex'] = req.next_tabindex()
   747         attrs.setdefault('onkeyup', 'autogrow(this)')
   747         attrs.setdefault('onkeyup', 'autogrow(this)')
   748         inputs += [tags.textarea(fqs, name=fqsqname, **attrs),
   748         inputs += [tags.textarea(fqs, name=fqsqname, **attrs),
   749                    u'</td></tr></table>']
   749                    u'</td></tr></table>']
   750         return u'\n'.join(inputs)
   750         # surrounding div necessary for proper error localization
       
   751         return u'<div id="%s">%s%s</div>' % (
       
   752             field.dom_id(form), u'\n'.join(inputs))
   751 
   753 
   752     def process_field_data(self, form, field):
   754     def process_field_data(self, form, field):
   753         req = form._cw
   755         req = form._cw
   754         values = {}
   756         values = {}
   755         path = req.form.get(field.input_name(form, 'path'))
   757         path = req.form.get(field.input_name(form, 'path'))