Amlioration rechercher sur les bornes wifi.
darcs-hash:20040915210613-41617-15fca3bfe4f3366f7e5c4a9cf87f1745a59bdff4.gz
This commit is contained in:
parent
33a4d66147
commit
7c697abdcf
1 changed files with 8 additions and 4 deletions
|
@ -238,7 +238,11 @@ def list_bornes(bornes) :
|
|||
if t != 'born' : continue
|
||||
|
||||
# Données
|
||||
data.append((b.id() , b.nom().split('.')[0], b.ip(), b.mac(), b.canal(), b.puissance(), b.info()[0] ))
|
||||
try :
|
||||
l = b.info()[0]
|
||||
except :
|
||||
l = u'????'
|
||||
data.append((b.id() , b.nom().split('.')[0], b.ip(), b.mac(), b.canal(), b.puissance(),l ))
|
||||
|
||||
return u"C=canal, P=puissance\n" + tableau([5, 14, 17, 19, 2, 2, 13], data)
|
||||
|
||||
|
@ -649,9 +653,9 @@ def __recherche() :
|
|||
only_bornes = 1
|
||||
print "Affichage limité aux bornes wifi."
|
||||
# On va tenter de limiter un peu la recherche
|
||||
if arg[0] == '*' :
|
||||
# Recherche initiale sans critètre
|
||||
arg = [ 'canal=*' ]
|
||||
if not arg :
|
||||
# Recherche initiale sans critère
|
||||
arg = [ 'canal=*&host=*.crans.org']
|
||||
elif arg[0].find('=')!=-1 :
|
||||
# Recherche avec critères
|
||||
arg += [ '&canal=*' ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue