diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index c6db5a5c..9c5b7810 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -860,6 +860,12 @@ def set_admin(proprio) : carte_ok = 'off' if iscontroleur: txt = [] + + if len(txt) == 2 : + # Il n'y a rien -Aà demander-b + dialog('--title "Champs non modifiables" --msgbox "%s\n" 0 0 ' % '\n'.join(txt)) + return + arg = u'--title "Etat administratif de %s" ' % proprio.Nom() arg+= u'--separate-output ' arg+= u'--checklist "%s" 0 0 0 ' % '\n'.join(txt)