Correction bug mineur.
darcs-hash:20041116165234-41617-d42341bc60665608826e18a197c3ebd1d588b9cc.gz
This commit is contained in:
parent
4c682b95d0
commit
86b8a28ff0
1 changed files with 3 additions and 2 deletions
|
@ -49,7 +49,6 @@ base = None
|
|||
|
||||
from ldap_crans import is_actif , crans_ldap, ann_scol, crans, hostname
|
||||
from affich_tools import *
|
||||
from hptools import sw_chbre
|
||||
import user_tests
|
||||
import popen2
|
||||
|
||||
|
@ -627,9 +626,11 @@ def borne_clients(borne) :
|
|||
return macs
|
||||
|
||||
def prise_etat(chbre) :
|
||||
""" Retoune l'état de la prise associée à la chbre """
|
||||
f = ''
|
||||
try :
|
||||
# On met aussi l'état
|
||||
from hptools import sw_chbre
|
||||
prise = sw_chbre(chbre)
|
||||
f += 'prise %s' % prise.prise_brute
|
||||
rows, cols = get_screen_size()
|
||||
|
@ -829,7 +830,7 @@ def __recherche() :
|
|||
if arg.count('=') == 1 and arg.split('=')[0] == 'chbre' :
|
||||
# Affichage des infos de la chambre
|
||||
chbre = arg.split('=')[1]
|
||||
print "Chambre %s inocupée (%s)" % (chbre,prise_etat(chbre))
|
||||
print "Chambre %s inocupée ou invalide (%s)" % (chbre,prise_etat(chbre))
|
||||
else :
|
||||
print "Aucun résultat trouvé."
|
||||
sys.exit(3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue