Compatibilite 80 colonnes

darcs-hash:20050915102451-d1718-7266a98fd2a3c95a00fda3e2b98af151a66bebf0.gz
This commit is contained in:
bernat 2005-09-15 12:24:51 +02:00
parent 57528cf426
commit 7477aa25d7

View file

@ -480,7 +480,8 @@ def machine_details(machine) :
coul_rssi = 'rouge'
rssi = 0
else:
client_nom = ", ".join(["%s [%s]" % (x.nom(), x.proprietaire().Nom()) for x in res])
client_nom = ", ".join(["%s [%s]" % (x.nom().split(".")[0],
x.proprietaire().Nom()) for x in res])
# On va choisir la bonne couleur pour le RSSI
if rssi > -88:
coul_rssi = 'vert'
@ -492,9 +493,9 @@ def machine_details(machine) :
auth_ok = ipsec_ok(x)
if auth_ok != None:
if auth_ok:
authentification = " ; IPSec: %s" % OK
authentification = "; IPSec: %s" % OK
else:
authentification = " ; IPSec: %s" % ERREUR
authentification = "; IPSec: %s" % ERREUR
f += u' %s (%s) (RSSI: %s%s)\n' % (client, client_nom,
coul("%d" % rssi, coul_rssi),
authentification)