From 7477aa25d7526693b75d853f967b387b55a1b1a1 Mon Sep 17 00:00:00 2001 From: bernat Date: Thu, 15 Sep 2005 12:24:51 +0200 Subject: [PATCH] Compatibilite 80 colonnes darcs-hash:20050915102451-d1718-7266a98fd2a3c95a00fda3e2b98af151a66bebf0.gz --- gestion/whos.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gestion/whos.py b/gestion/whos.py index 74649d78..a7c7682d 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -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)