Compatibilite 80 colonnes
darcs-hash:20050915102451-d1718-7266a98fd2a3c95a00fda3e2b98af151a66bebf0.gz
This commit is contained in:
parent
57528cf426
commit
7477aa25d7
1 changed files with 4 additions and 3 deletions
|
@ -480,7 +480,8 @@ def machine_details(machine) :
|
||||||
coul_rssi = 'rouge'
|
coul_rssi = 'rouge'
|
||||||
rssi = 0
|
rssi = 0
|
||||||
else:
|
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
|
# On va choisir la bonne couleur pour le RSSI
|
||||||
if rssi > -88:
|
if rssi > -88:
|
||||||
coul_rssi = 'vert'
|
coul_rssi = 'vert'
|
||||||
|
@ -492,9 +493,9 @@ def machine_details(machine) :
|
||||||
auth_ok = ipsec_ok(x)
|
auth_ok = ipsec_ok(x)
|
||||||
if auth_ok != None:
|
if auth_ok != None:
|
||||||
if auth_ok:
|
if auth_ok:
|
||||||
authentification = " ; IPSec: %s" % OK
|
authentification = "; IPSec: %s" % OK
|
||||||
else:
|
else:
|
||||||
authentification = " ; IPSec: %s" % ERREUR
|
authentification = "; IPSec: %s" % ERREUR
|
||||||
f += u' %s (%s) (RSSI: %s%s)\n' % (client, client_nom,
|
f += u' %s (%s) (RSSI: %s%s)\n' % (client, client_nom,
|
||||||
coul("%d" % rssi, coul_rssi),
|
coul("%d" % rssi, coul_rssi),
|
||||||
authentification)
|
authentification)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue