From 66d4a5905a4125f84265958d3e03f6102067414c Mon Sep 17 00:00:00 2001 From: chove Date: Mon, 18 Apr 2005 19:34:25 +0200 Subject: [PATCH] changement des noms des switchs 0 darcs-hash:20050418173425-4ec08-38a5c777ca08be0e36a83cb783486568ec690fe4.gz --- gestion/gen_confs/autostatus.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gestion/gen_confs/autostatus.py b/gestion/gen_confs/autostatus.py index 9c9df3f2..50f7deb9 100755 --- a/gestion/gen_confs/autostatus.py +++ b/gestion/gen_confs/autostatus.py @@ -168,13 +168,9 @@ class autostatus(gen_config) : # est ce que c'est un batiment if 'bat' == m.nom()[0:3] : - # on convertit le bat# en bat#-0 - if not "-" in m.nom().split(".")[0] : - index = m.nom().split(".")[0] + "-0" - else : - index = m.nom().split(".")[0] + index = '1-' + m.nom().split(".")[0] else : - index = 'a' + m.nom().split(".")[0] + index = '0-' + m.nom().split(".")[0] # on ajoute au dictionnaire switchs[ index ] = [ m.nom().split(".")[0] , m.nom() , 'none' , self.mail_contact(m.nom()) , m.info()[0] ]