Commit f47a1a57 authored by Jérome Perrin's avatar Jérome Perrin

Formulator: fix search on python3

parent c953f33c
...@@ -456,7 +456,7 @@ class Field: ...@@ -456,7 +456,7 @@ class Field:
return obj.method_name return obj.method_name
elif obj_type is TALESField.TALESMethod: elif obj_type is TALESField.TALESMethod:
return obj._text return obj._text
elif obj_type is six.text_type: elif six.PY2 and obj_type is six.text_type:
return obj.encode('utf-8') return obj.encode('utf-8')
return str(obj) return str(obj)
return ' '.join(map(getSearchSource, return ' '.join(map(getSearchSource,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment