diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 6d9e0a2d..77e764c0 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -832,15 +832,15 @@ class base_classes_crans(crans_ldap) : if self._data['blacklist'] != liste : self._data['blacklist']=liste self.modifs.append('blacklist_' + new[2]) - if not hasattr(self,"__blacklist_restart") : - self.__blacklist_restart={} - if not self.__blacklist_restart.has_key(new[2]) : - self.__blacklist_restart[new[2]] = [ debut, fin ] + if not hasattr(self,"_blacklist_restart") : + self._blacklist_restart={} + if not self._blacklist_restart.has_key(new[2]) : + self._blacklist_restart[new[2]] = [ debut, fin ] else : - if debut not in self.__blacklist_restart[new[2]] : - self.__blacklist_restart[new[2]].append(debut) - if fin!=-1 and fin not in self.__blacklist_restart[new[2]] : - self.__blacklist_restart[new[2]].append(fin) + if debut not in self._blacklist_restart[new[2]] : + self._blacklist_restart[new[2]].append(debut) + if fin!=-1 and fin not in self._blacklist_restart[new[2]] : + self._blacklist_restart[new[2]].append(fin) return liste @@ -987,8 +987,8 @@ class base_classes_crans(crans_ldap) : ### Génération de la liste de services à redémarrer # Quasiement tout est traité dans les classes filles. - if hasattr(self,"__blacklist_restart") : - for n,t in self.__blacklist_restart.items() : + if hasattr(self,"_blacklist_restart") : + for n,t in self._blacklist_restart.items() : self.services_to_restart("blacklist_%s"%n,[],t) # Reinitialisation