From 86b8a28ff04062449256c96bfe69bf9fe83ac280 Mon Sep 17 00:00:00 2001 From: pauget Date: Tue, 16 Nov 2004 17:52:34 +0100 Subject: [PATCH] Correction bug mineur. darcs-hash:20041116165234-41617-d42341bc60665608826e18a197c3ebd1d588b9cc.gz --- gestion/whos.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gestion/whos.py b/gestion/whos.py index 66a1648b..4b6196b9 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -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)