[annuaire] On passe sur ula base de données PgSQL
darcs-hash:20100831065041-ffbb2-c44e28237d99ba472e0465ad88f1cd7149e3081d.gz
This commit is contained in:
parent
337905013d
commit
a1427076b5
15 changed files with 32 additions and 35 deletions
|
@ -13,7 +13,7 @@ from time import sleep
|
|||
from popen2 import popen3
|
||||
from sys import stderr, path
|
||||
from commands import getstatusoutput
|
||||
from annuaires import chbre_prises, all_switchs
|
||||
from annuaires_pg import chbre_prises, all_switchs
|
||||
from os.path import exists
|
||||
from os import system
|
||||
import sys
|
||||
|
@ -415,7 +415,7 @@ class sw_chbre(hpswitch) :
|
|||
self.chbre = chbre
|
||||
try :
|
||||
bat = chbre[0].lower()
|
||||
prise = chbre_prises[bat][chbre[1:]]
|
||||
prise = chbre_prises(bat, chbre[1:])
|
||||
self.prise_brute = prise
|
||||
self.switch = 'bat%s-%i.adm.crans.org' % (bat , int(prise[0]) )
|
||||
if prise[-1] == '-' :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue