From 5189b3c310b8698892389dda4653923fa5a4ccca Mon Sep 17 00:00:00 2001 From: pauget Date: Sun, 17 Oct 2004 16:54:26 +0200 Subject: [PATCH] En cas de changement de chambre avec ???? rednration de bl_chbre_invalide. darcs-hash:20041017145426-41617-e2a9f8523f4eca9362b3f82d318810617e1a58e8.gz --- gestion/ldap_crans.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 01ae272e..1fd2b6aa 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -760,7 +760,7 @@ class base_classes_crans(crans_ldap) : modif='inscription' else : if "chbre" in self.modifs: - modif=filter(lambda x: x!="chbre", self.modifs) + modif= self.modifs.remove("chbre") modif.append("chbre %s -> %s" % (self._init_data["chbre"][0], self._data["chbre"][0])) else: @@ -846,6 +846,8 @@ class base_classes_crans(crans_ldap) : for m in self.modifs : if sre.match('blacklist_*',m) : serv.append(m) + elif m == 'chbre' and '????' in [ self._init_data.get("chbre",[])[0] , self._data.get("chbre",[])[0] ] : + serv.append('bl_chbre_invalide') else : for s in annuaire_modif_service.get(m,[]) : if s not in serv :