comparison src/tools/xml_tools.py @ 1409:3265a2639182

massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions
author souliane <souliane@mailoo.org>
date Thu, 16 Apr 2015 14:57:57 +0200
parents 069ad98b360d
children 8ce9924fa92c
comparison
equal deleted inserted replaced
1408:8a7145138330 1409:3265a2639182
151 item_elts = form_xml.elements('jabber:x:data', 'item') 151 item_elts = form_xml.elements('jabber:x:data', 'item')
152 152
153 for item_elt in item_elts: 153 for item_elt in item_elts:
154 for elt in item_elt.elements(): 154 for elt in item_elt.elements():
155 if elt.name != 'field': 155 if elt.name != 'field':
156 log.warning("Unexpected tag (%s)" % elt.name) 156 log.warning(u"Unexpected tag (%s)" % elt.name)
157 continue 157 continue
158 field = data_form.Field.fromElement(elt) 158 field = data_form.Field.fromElement(elt)
159 159
160 widget_type, widget_args, widget_kwargs = _dataFormField2XMLUIData(field) 160 widget_type, widget_args, widget_kwargs = _dataFormField2XMLUIData(field)
161 xmlui.addWidget(widget_type, *widget_args, **widget_kwargs) 161 xmlui.addWidget(widget_type, *widget_args, **widget_kwargs)