From dbb4090ee9cd5e561b3c0f93e11bf43ce8c39633 Mon Sep 17 00:00:00 2001 From: pauget Date: Mon, 31 Oct 2005 01:56:58 +0100 Subject: [PATCH] Si tout est vrifi on informe et continue. darcs-hash:20051031005658-41617-432f212b9fb4be579a10f107d3629cfc3922e89f.gz --- gestion/gest_crans.py | 6 ++++++ 1 file changed, 6 insertions(+) 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)