fix unicode issues
This commit is contained in:
parent
b042b4b7f6
commit
7be8efbab4
3 changed files with 11 additions and 9 deletions
|
|
@ -20,6 +20,7 @@ from PyQt4.QtGui import QScrollArea, QWidget, QHBoxLayout, QVBoxLayout, QFrame,
|
|||
|
||||
from weboob.capabilities.account import ICapAccount, StatusField
|
||||
from weboob.tools.application.qt import QtDo
|
||||
from weboob.tools.misc import to_unicode
|
||||
|
||||
class Account(QFrame):
|
||||
def __init__(self, weboob, backend, parent=None):
|
||||
|
|
@ -97,7 +98,7 @@ class Account(QFrame):
|
|||
self.process.body += u'<b>%s</b>: %s' % (field.label, field.value)
|
||||
|
||||
def updateStats_eb(self, backend, err, backtrace):
|
||||
self.body.setText(u'<b>Unable to connect:</b> %s' % unicode(err))
|
||||
self.body.setText(u'<b>Unable to connect:</b> %s' % to_unicode(err))
|
||||
self.title.setText(u'<font color=#ff0000>%s</font>' % unicode(self.title.text()))
|
||||
|
||||
class AccountsStatus(QScrollArea):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue