web/form.py
branchtls-sprint
changeset 1072 e36f2889e1bd
parent 1071 abe11abb37a0
child 1073 e4342c74ed2d
equal deleted inserted replaced
1071:abe11abb37a0 1072:e36f2889e1bd
   672             data = form.form_field_value(self, {}, load_bytes=True)
   672             data = form.form_field_value(self, {}, load_bytes=True)
   673             if data:
   673             if data:
   674                 encoding = form.form_field_encoding(self)
   674                 encoding = form.form_field_encoding(self)
   675                 try:
   675                 try:
   676                     form.context[self]['value'] = unicode(data.getvalue(), encoding)
   676                     form.context[self]['value'] = unicode(data.getvalue(), encoding)
   677                     form.context[self]['rawvalue'] = form.context[self]['value']
       
   678                 except UnicodeError:
   677                 except UnicodeError:
   679                     pass
   678                     pass
   680                 else:
   679                 else:
   681                     if not self.required:
   680                     if not self.required:
   682                         msg = form.req._(
   681                         msg = form.req._(