From 569c166cfc95bd115f6942b3fd1601cae2ca1d43 Mon Sep 17 00:00:00 2001 From: Olivier Iffrig Date: Thu, 2 Sep 2010 09:49:04 +0200 Subject: [PATCH] =?UTF-8?q?[./gestion/ldap=5Fcrans.py]=20Possibilit=C3=A9?= =?UTF-8?q?=20d'annuler=20la=20redirection=20mail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: dc2eea92cfcbb33af4fb887ccbe2f888 darcs-hash:20100902074904-108b1-8df599a907093158450f0bdd6f43730ec4edd8d1.gz --- gestion/ldap_crans.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 4546f5c5..8b302644 100644 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1857,7 +1857,10 @@ class BaseProprietaire(BaseClasseCrans): mail1 = mail2 = None if r.lower().startswith('o'): while True: - mail1 = prompt(u"Adresse mail ?") + mail1 = prompt(u"Adresse mail ? (ANNUL pour annuler la redirection)") + if mail1 == "ANNUL": + mail1 = None + break try: validate_mail(mail1) except ValueError, e: