Detabification massive.
darcs-hash:20051018083823-d1718-09c2df38cfb707d3c3679188b9b9a812009f4f7c.gz
This commit is contained in:
parent
3c54fb2904
commit
37b21339a6
40 changed files with 1473 additions and 1473 deletions
|
@ -251,21 +251,21 @@ def list_bornes(bornes) :
|
|||
# Données
|
||||
try :
|
||||
l = b.info()[0]
|
||||
if len(l) > 11 :
|
||||
l = l[0:11]
|
||||
if len(l) > 11 :
|
||||
l = l[0:11]
|
||||
except :
|
||||
l = u'????'
|
||||
|
||||
if borne_etat(b.nom()):
|
||||
if borne_etat(b.nom()):
|
||||
etat = ok
|
||||
else:
|
||||
etat = nok
|
||||
|
||||
if '-' in b.puissance() :
|
||||
puiss = coul(b.puissance(),'rouge')
|
||||
else :
|
||||
puiss = b.puissance()
|
||||
|
||||
|
||||
if '-' in b.puissance() :
|
||||
puiss = coul(b.puissance(),'rouge')
|
||||
else :
|
||||
puiss = b.puissance()
|
||||
|
||||
data.append((b.id() , b.nom().split('.')[0], b.ip(), b.mac(), etat, b.canal(), puiss, b.prise(),l ))
|
||||
|
||||
return u"Can=canaux, P=puissance, E=état\n" + tableau([4, 13, 15, 17, 1, 5, 3, 4, '*'], data)
|
||||
|
@ -752,8 +752,8 @@ def prise_etat(chbre) :
|
|||
# Switch non manageable ou down
|
||||
f += u', erreur de communication avec le switch'
|
||||
except :
|
||||
f = u'info prise non dispo : erreur prog'
|
||||
|
||||
f = u'info prise non dispo : erreur prog'
|
||||
|
||||
return f
|
||||
|
||||
##############################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue