comparison src/tools/xml_tools.py @ 1070:ad023e60da8c

core (XMLUI): management of text-multi in _dataFormField2XMLUIData
author Goffi <goffi@goffi.org>
date Sat, 14 Jun 2014 17:25:08 +0200
parents 8e1f30aa3975
children bb4517e69957
comparison
equal deleted inserted replaced
1069:8e1f30aa3975 1070:ad023e60da8c
53 field.value = field.label 53 field.value = field.label
54 field.label = None 54 field.label = None
55 widget_args[0] = field.value 55 widget_args[0] = field.value
56 elif field.fieldType == 'text-single': 56 elif field.fieldType == 'text-single':
57 widget_type = "string" 57 widget_type = "string"
58 elif field.fieldType == 'text-multi':
59 widget_type = "text"
60 widget_args[0] = u'\n'.join(field.values)
58 elif field.fieldType == 'text-private': 61 elif field.fieldType == 'text-private':
59 widget_type = "password" 62 widget_type = "password"
60 elif field.fieldType == 'boolean': 63 elif field.fieldType == 'boolean':
61 widget_type = "bool" 64 widget_type = "bool"
62 if widget_args[0] is None: 65 if widget_args[0] is None: