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