Aération, indentation.
This commit is contained in:
parent
cb71139d02
commit
4b99950f97
1 changed files with 75 additions and 72 deletions
|
@ -23,6 +23,9 @@ import proprio
|
||||||
from CPS import TailCall, tailcaller, Continue
|
from CPS import TailCall, tailcaller, Continue
|
||||||
|
|
||||||
class Dialog(proprio.Dialog):
|
class Dialog(proprio.Dialog):
|
||||||
|
"""
|
||||||
|
Classe Dialog spécifique aux adhérents pour gest_crans_lc
|
||||||
|
"""
|
||||||
def modif_adherent_blacklist(self, adherent, cont):
|
def modif_adherent_blacklist(self, adherent, cont):
|
||||||
"""Raccourci vers edit_blacklist spécifique aux adherent"""
|
"""Raccourci vers edit_blacklist spécifique aux adherent"""
|
||||||
return self.edit_blacklist(obj=adherent, title="Éditions des blacklist de %s %s" % (adherent['prenom'][0], adherent['nom'][0]), update_obj='adherent', cont=cont)
|
return self.edit_blacklist(obj=adherent, title="Éditions des blacklist de %s %s" % (adherent['prenom'][0], adherent['nom'][0]), update_obj='adherent', cont=cont)
|
||||||
|
@ -512,9 +515,9 @@ class Dialog(proprio.Dialog):
|
||||||
|
|
||||||
def box(make_compte_crans):
|
def box(make_compte_crans):
|
||||||
if force_create and adherent is None and fields_attrs and make_compte_crans is not None:
|
if force_create and adherent is None and fields_attrs and make_compte_crans is not None:
|
||||||
return (self.dialog.DIALOG_OK, [fields_attrs[a] for a,l in to_display], make_compte_crans)
|
return (self.dialog.DIALOG_OK, [fields_attrs[a] for (a, l) in to_display], make_compte_crans)
|
||||||
if adherent:
|
if adherent:
|
||||||
attrs = dict((k,[str(a) for a in at]) for k,at in adherent.items())
|
attrs = dict((k, [str(a) for a in at]) for (k, at) in adherent.items())
|
||||||
if 'cransAccount' in adherent['objectClass']:
|
if 'cransAccount' in adherent['objectClass']:
|
||||||
input_type[attributs.mail] = 2
|
input_type[attributs.mail] = 2
|
||||||
to_display.append((attributs.mailExt, 30))
|
to_display.append((attributs.mailExt, 30))
|
||||||
|
@ -698,7 +701,7 @@ class Dialog(proprio.Dialog):
|
||||||
elif keep_machine and keep_compte:
|
elif keep_machine and keep_compte:
|
||||||
def box(values={}):
|
def box(values={}):
|
||||||
form = [("Adresse", 40), ("Compl. adr.", 40), ("Code postal", 7), ("Ville", 16)]
|
form = [("Adresse", 40), ("Compl. adr.", 40), ("Code postal", 7), ("Ville", 16)]
|
||||||
fields = [("%s :" % k, values.get(k, ""), l, 50) for k,l in form]
|
fields = [("%s :" % k, values.get(k, ""), l, 50) for (k, l) in form]
|
||||||
return self.dialog.form(
|
return self.dialog.form(
|
||||||
text="",
|
text="",
|
||||||
timeout=self.timeout,
|
timeout=self.timeout,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue