[gest_crans] En fait, ça marche mieux quand on corrige les erreurs
This commit is contained in:
parent
7a49298de5
commit
a4dedbb335
2 changed files with 6 additions and 6 deletions
|
@ -650,13 +650,13 @@ def set_actif(adher):
|
||||||
Définition de l'état d'activité du compte.
|
Définition de l'état d'activité du compte.
|
||||||
"""
|
"""
|
||||||
# Initialisation des différentes checkbox
|
# Initialisation des différentes checkbox
|
||||||
inactif = on_off("0" in adher.active())
|
inactif = on_off(adher.active() == False)
|
||||||
|
|
||||||
# Construction de la boîte de dialogue
|
# Construction de la boîte de dialogue
|
||||||
texte = []
|
texte = []
|
||||||
checklist = []
|
checklist = []
|
||||||
|
|
||||||
if state:
|
if inactif:
|
||||||
checklist.append(u'"1" "Compte mail/serveur désactivé" "%s"' % (inactif))
|
checklist.append(u'"1" "Compte mail/serveur désactivé" "%s"' % (inactif))
|
||||||
|
|
||||||
# Il y a qqch de modifiable, on construit la checklist
|
# Il y a qqch de modifiable, on construit la checklist
|
||||||
|
|
|
@ -2458,13 +2458,13 @@ class Adherent(BaseProprietaire):
|
||||||
if self.compte() == '':
|
if self.compte() == '':
|
||||||
raise EnvironmentError("Can't deactivate non-existing account")
|
raise EnvironmentError("Can't deactivate non-existing account")
|
||||||
if status == None:
|
if status == None:
|
||||||
return not (self._data.get("setExpire", [""])[0] == "0")
|
return not (self._data.get("shadowExpire", [""])[0] == "0")
|
||||||
elif status == False:
|
elif status == False:
|
||||||
self._set('setExpire', ["0"])
|
self._set('shadowExpire', ["0"])
|
||||||
else:
|
else:
|
||||||
self._set('setExpire', [])
|
self._set('shadowExpire', [])
|
||||||
|
|
||||||
return not (self._data.get("setExpire", [""])[0] == "0")
|
return not (self._data.get("shadowExpire", [""])[0] == "0")
|
||||||
|
|
||||||
def canonical_alias(self, new=None):
|
def canonical_alias(self, new=None):
|
||||||
""" Retourne ou défini l'alias canonique"""
|
""" Retourne ou défini l'alias canonique"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue