From 365f9aa5d442b8a1f5aba452bbf579f5fdc07c2c Mon Sep 17 00:00:00 2001 From: dubost Date: Fri, 1 Dec 2006 12:55:42 +0100 Subject: [PATCH] On met la chambre du gars dans les clients d'une borne pour pouvoir estimer la porte darcs-hash:20061201115542-c3cc4-c33df704b587a957dc1c2466d9c85c9a189befa4.gz --- gestion/whos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gestion/whos.py b/gestion/whos.py index 36b64cb5..d2aee641 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -582,6 +582,7 @@ def machine_details(machine) : authentification = "; IPSec: %s" % OK else: authentification = "; IPSec: %s" % ERREUR + client_chbre = " ".join(["%s " % (x.proprietaire().chbre()) for x in res]) # On va choisir la bonne couleur pour le RSSI if rssi > -88: coul_rssi = 'vert' @@ -589,7 +590,7 @@ def machine_details(machine) : coul_rssi = 'jaune' else: coul_rssi = 'rouge' - f += u' %s (%s) (RSSI: %s%s)\n' % (client, client_nom, + f += u' %s (%s %s) (RSSI: %s%s)\n' % (client, client_nom, client_chbre, coul("%d" % rssi, coul_rssi), authentification) else: