comparison src/browser/sat_browser/xmlui.py @ 694:82123705474b

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:02 +0200
parents 9877607c719a
children 9a9e2fcc6347
comparison
equal deleted inserted replaced
693:1d60fa4d25a4 694:82123705474b
192 def _xmluiSelectValue(self, value): 192 def _xmluiSelectValue(self, value):
193 """Select a value checking its item""" 193 """Select a value checking its item"""
194 try: 194 try:
195 label = [label for label, _value in self._xmlui_attr_map.items() if _value == value][0] 195 label = [label for label, _value in self._xmlui_attr_map.items() if _value == value][0]
196 except IndexError: 196 except IndexError:
197 log.warning("Can't find value [%s] to select" % value) 197 log.warning(u"Can't find value [%s] to select" % value)
198 return 198 return
199 self.selectItem(label) 199 self.selectItem(label)
200 200
201 def _xmluiSelectValues(self, values): 201 def _xmluiSelectValues(self, values):
202 """Select multiple values, ignore the items""" 202 """Select multiple values, ignore the items"""