Commit 98d72806 authored by Hamza Dely's avatar Hamza Dely

Adaptation de controle_tresorerie.py pour python-dialog 3.3

parent 6b2111f4
......@@ -36,6 +36,8 @@ de code."""
#pylint: disable=line-too-long
from __future__ import unicode_literals
import argparse
import sys
......@@ -144,7 +146,7 @@ def traiter_factures(ldap, args):
choices=[(key, _choices[key]['txt'], _choices[key]['help']) for key in _order]
)
if int(code) > 0:
if code in [dialog.Dialog.CANCEL, dialog.Dialog.ESC, dialog.Dialog.HELP, dialog.Dialog.EXTRA]:
return
# On met à jour le dernier choix
......@@ -373,7 +375,7 @@ def controle(controle_type):
_sentences[controle_type][3]
)
if int(code) > 0:
if code in [dialog.Dialog.CANCEL, dialog.Dialog.ESC, dialog.Dialog.HELP, dialog.Dialog.EXTRA]:
return
# On appelle proceed_with avec les résultats
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment