diff --git a/weboob/applications/qhavesex/contacts.py b/weboob/applications/qhavesex/contacts.py index 581edddb..d6837c1f 100644 --- a/weboob/applications/qhavesex/contacts.py +++ b/weboob/applications/qhavesex/contacts.py @@ -177,12 +177,10 @@ class ContactProfile(QWidget): elif isinstance(node.value, tuple): value = QLabel(', '.join([unicode(s) for s in node.value])) value.setWordWrap(True) - elif isinstance(node.value, (str,unicode,int)): - print '[%s]' % node.value + elif isinstance(node.value, (str,unicode,int,long,float)): value = QLabel(unicode(node.value)) - - if not value: - print 'no value :(' + else: + logging.warning('Not supported value: %r' % node.value) return # Insert the value widget into the parent widget, depending @@ -195,8 +193,7 @@ class ContactProfile(QWidget): elif isinstance(widget.layout(), QVBoxLayout): widget.layout().addWidget(value) else: - print 'TODO' - return + logging.warning('Not supported widget: %r' % widget) class IGroup(object): def __init__(self, weboob, id, name): diff --git a/weboob/applications/qhavesex/ui/profile.ui b/weboob/applications/qhavesex/ui/profile.ui index 950d3a5e..1e0f9985 100644 --- a/weboob/applications/qhavesex/ui/profile.ui +++ b/weboob/applications/qhavesex/ui/profile.ui @@ -19,6 +19,12 @@ + + QFrame::NoFrame + + + QFrame::Plain + true @@ -27,8 +33,8 @@ 0 0 - 456 - 316 + 460 + 320