equal
deleted
inserted
replaced
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._( |