diff src/browser/sat_browser/libervia_widget.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 b395d1309936
line wrap: on
line diff
--- a/src/browser/sat_browser/libervia_widget.py	Thu Apr 16 13:29:26 2015 +0200
+++ b/src/browser/sat_browser/libervia_widget.py	Thu Apr 16 14:57:02 2015 +0200
@@ -165,8 +165,8 @@
             if item_type and item_type[-1] == '\0':  # Workaround for what looks like a pyjamas bug: the \0 should not be there, and
                 item_type = item_type[:-1]           # .strip('\0') and .replace('\0','') don't work. TODO: check this and fill a bug report
             # item_type = dt.getData("type")
-            log.debug("message: %s" % item)
-            log.debug("type: %s" % item_type)
+            log.debug(u"message: %s" % item)
+            log.debug(u"type: %s" % item_type)
         except:
             log.debug("no message found")
             item = '&nbsp;'
@@ -290,8 +290,8 @@
             if item_type and item_type[-1] == '\0':  # Workaround for what looks like a pyjamas bug: the \0 should not be there, and
                 item_type = item_type[:-1]           # .strip('\0') and .replace('\0','') don't work. TODO: check this and fill a bug report
             # item_type = dt.getData("type")
-            log.debug("message: %s" % item)
-            log.debug("type: %s" % item_type)
+            log.debug(u"message: %s" % item)
+            log.debug(u"type: %s" % item_type)
         except:
             log.debug("no message found")
             item = '&nbsp;'
@@ -618,7 +618,7 @@
 
     def changeWidget(self, row, col, wid):
         """Change the widget in the given location, add row or columns when necessary"""
-        log.debug("changing widget: %s %s %s" % (wid.getDebugName(), row, col))
+        log.debug(u"changing widget: %s %s %s" % (wid.getDebugName(), row, col))
         last_row = max(0, self.flextable.getRowCount() - 1)
         # try:  # FIXME: except without exception specified !
         prev_wid = self.flextable.getWidget(row, col)
@@ -681,7 +681,7 @@
     def addWidget(self, wid):
         """Add a widget to a new cell on the next to last row"""
         last_row = max(0, self.flextable.getRowCount() - 1)
-        log.debug("putting widget %s at %d, %d" % (wid.getDebugName(), last_row, 0))
+        log.debug(u"putting widget %s at %d, %d" % (wid.getDebugName(), last_row, 0))
         self.changeWidget(last_row, 0, wid)
 
     def removeWidget(self, wid):