From abb6d25e47550b1a804b446a0e8cb17891ee5c3c Mon Sep 17 00:00:00 2001 From: bernat Date: Wed, 9 Mar 2005 22:29:44 +0100 Subject: [PATCH] Nouvelle correction darcs-hash:20050309212944-d1718-02a7502b46cf2f4e563c9b004f858d0f75a3ba29.gz --- gestion/whos.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gestion/whos.py b/gestion/whos.py index 63055171..5f7ac1fc 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -458,6 +458,8 @@ def machine_details(machine) : res = base.search("mac=%s" % client)['machine'] if not res: client_nom = '????' + coul_rssi = 'rouge' + rssi = 0 else: client_nom = ", ".join(["%s [%s]" % (x.nom(), x.proprietaire().Nom()) for x in res]) # On va choisir la bonne couleur pour le RSSI @@ -467,8 +469,8 @@ def machine_details(machine) : coul_rssi = 'jaune' else: coul_rssi = 'rouge' - f += u' %s (%s) (RSSI: %s)\n' % (client, client_nom, - coul("%d" % rssi, coul_rssi)) + f += u' %s (%s) (RSSI: %s)\n' % (client, client_nom, + coul("%d" % rssi, coul_rssi)) else: f += coul(u'borne éteinte','rouge') f += '\n'