From c67c1b3c6f551321a49222a98b37f9cfa8564bcb Mon Sep 17 00:00:00 2001 From: chove Date: Fri, 9 Sep 2005 23:04:15 +0200 Subject: [PATCH] decodage pour les accents dsl fred pour le mail du crans de gest_crans :-) bonne nuit a tous darcs-hash:20050909210415-4ec08-283f89d34c31e3090641c827c5c84159cf693496.gz --- gestion/ldap_crans.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index e9801715..3bbb7b1f 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -854,8 +854,8 @@ class base_classes_crans(crans_ldap) : if 'droits' in self.modifs: anciens_droits = self._init_data.get('droits',[]) nouveaux_droits = self._data.get('droits',[]) - droits_ajoutes = ''.join( [ '+%s' % d for d in nouveaux_droits if d not in anciens_droits ] ) - droits_enleves = ''.join( [ '-%s' % d for d in anciens_droits if d not in nouveaux_droits ] ) + droits_ajoutes = ''.join( [ '+%s' % decode(d) for d in nouveaux_droits if d not in anciens_droits ] ) + droits_enleves = ''.join( [ '-%s' % decode(d) for d in anciens_droits if d not in nouveaux_droits ] ) modif = modif.replace("droits", "droits : " + droits_ajoutes + droits_enleves ) timestamp = localtime()