[annuaire] On passe sur ula base de données PgSQL

darcs-hash:20100831065041-ffbb2-c44e28237d99ba472e0465ad88f1cd7149e3081d.gz
This commit is contained in:
Nicolas Dandrimont 2010-08-31 08:50:41 +02:00
parent 337905013d
commit a1427076b5
15 changed files with 32 additions and 35 deletions

View file

@ -30,7 +30,7 @@ import sys
sys.path.append('/usr/scripts/gestion')
from ldap_crans import crans_ldap
from annuaires import chbre_prises, reverse
from annuaires_pg import chbre_prises, reverse
from affich_tools import cprint
import sys, datetime
@ -65,7 +65,7 @@ def trouve_prise(chbre):
return chbre
else:
bat = chbre[0].lower()
prise = bat + chbre_prises[bat][chbre[1:]]
prise = bat + chbre_prises(bat, chbre[1:])
if prise[-1] == '-':
prise = prise[:-1]
return prise