comparison src/tools/xml_tools.py @ 1078:bb4517e69957

tools (xmlui): data form 'text-multi' element must be converted to xmlui 'textbox' (not 'text')
author souliane <souliane@mailoo.org>
date Wed, 18 Jun 2014 14:55:35 +0200
parents ad023e60da8c
children 03dcb6ca7e49
comparison
equal deleted inserted replaced
1077:387bbc459d8f 1078:bb4517e69957
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': 58 elif field.fieldType == 'text-multi':
59 widget_type = "text" 59 widget_type = "textbox"
60 widget_args[0] = u'\n'.join(field.values) 60 widget_args[0] = u'\n'.join(field.values)
61 elif field.fieldType == 'text-private': 61 elif field.fieldType == 'text-private':
62 widget_type = "password" 62 widget_type = "password"
63 elif field.fieldType == 'boolean': 63 elif field.fieldType == 'boolean':
64 widget_type = "bool" 64 widget_type = "bool"