changeset 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 eef1f200d733
files frontends/src/primitivus/xmlui.py src/tools/xml_tools.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/primitivus/xmlui.py	Sat Jun 14 17:24:16 2014 +0200
+++ b/frontends/src/primitivus/xmlui.py	Sat Jun 14 17:25:08 2014 +0200
@@ -23,7 +23,6 @@
 from urwid_satext import sat_widgets
 from sat.core.log import getLogger
 log = getLogger(__name__)
-from xml.dom import minidom
 from sat_frontends.tools import xmlui
 
 
--- a/src/tools/xml_tools.py	Sat Jun 14 17:24:16 2014 +0200
+++ b/src/tools/xml_tools.py	Sat Jun 14 17:25:08 2014 +0200
@@ -55,6 +55,9 @@
             widget_args[0] = field.value
     elif field.fieldType == 'text-single':
         widget_type = "string"
+    elif field.fieldType == 'text-multi':
+        widget_type = "text"
+        widget_args[0] = u'\n'.join(field.values)
     elif field.fieldType == 'text-private':
         widget_type = "password"
     elif field.fieldType == 'boolean':