Les variables __ sont prives et ne s'hritent pas !
darcs-hash:20051015211755-41617-96fcf0103a64fe2e295baa223d4d1eb2ad099bfe.gz
This commit is contained in:
parent
8347b48162
commit
1e52822556
1 changed files with 10 additions and 10 deletions
|
@ -832,15 +832,15 @@ class base_classes_crans(crans_ldap) :
|
||||||
if self._data['blacklist'] != liste :
|
if self._data['blacklist'] != liste :
|
||||||
self._data['blacklist']=liste
|
self._data['blacklist']=liste
|
||||||
self.modifs.append('blacklist_' + new[2])
|
self.modifs.append('blacklist_' + new[2])
|
||||||
if not hasattr(self,"__blacklist_restart") :
|
if not hasattr(self,"_blacklist_restart") :
|
||||||
self.__blacklist_restart={}
|
self._blacklist_restart={}
|
||||||
if not self.__blacklist_restart.has_key(new[2]) :
|
if not self._blacklist_restart.has_key(new[2]) :
|
||||||
self.__blacklist_restart[new[2]] = [ debut, fin ]
|
self._blacklist_restart[new[2]] = [ debut, fin ]
|
||||||
else :
|
else :
|
||||||
if debut not in self.__blacklist_restart[new[2]] :
|
if debut not in self._blacklist_restart[new[2]] :
|
||||||
self.__blacklist_restart[new[2]].append(debut)
|
self._blacklist_restart[new[2]].append(debut)
|
||||||
if fin!=-1 and fin not in self.__blacklist_restart[new[2]] :
|
if fin!=-1 and fin not in self._blacklist_restart[new[2]] :
|
||||||
self.__blacklist_restart[new[2]].append(fin)
|
self._blacklist_restart[new[2]].append(fin)
|
||||||
|
|
||||||
return liste
|
return liste
|
||||||
|
|
||||||
|
@ -987,8 +987,8 @@ class base_classes_crans(crans_ldap) :
|
||||||
|
|
||||||
### Génération de la liste de services à redémarrer
|
### Génération de la liste de services à redémarrer
|
||||||
# Quasiement tout est traité dans les classes filles.
|
# Quasiement tout est traité dans les classes filles.
|
||||||
if hasattr(self,"__blacklist_restart") :
|
if hasattr(self,"_blacklist_restart") :
|
||||||
for n,t in self.__blacklist_restart.items() :
|
for n,t in self._blacklist_restart.items() :
|
||||||
self.services_to_restart("blacklist_%s"%n,[],t)
|
self.services_to_restart("blacklist_%s"%n,[],t)
|
||||||
|
|
||||||
# Reinitialisation
|
# Reinitialisation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue