web/formwidgets.py
changeset 4392 91a56a30141e
parent 4382 6fb02edd05da
child 4481 56440a1f816a
equal deleted inserted replaced
4391:bd8480824e0b 4392:91a56a30141e
   113 
   113 
   114     def process_field_data(self, form, field):
   114     def process_field_data(self, form, field):
   115         posted = form._cw.form
   115         posted = form._cw.form
   116         val = posted.get(field.input_name(form, self.suffix))
   116         val = posted.get(field.input_name(form, self.suffix))
   117         if isinstance(val, basestring):
   117         if isinstance(val, basestring):
   118             val = val.strip() or None
   118             val = val.strip()
   119         return val
   119         return val
   120 
   120 
   121     @deprecated('[3.6] use values_and_attributes')
   121     @deprecated('[3.6] use values_and_attributes')
   122     def _render_attrs(self, form, field):
   122     def _render_attrs(self, form, field):
   123         """return html tag name, attributes and a list of values for the field
   123         """return html tag name, attributes and a list of values for the field