summaryrefslogtreecommitdiffstats
path: root/install/updates/40-delegation.update
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2012-02-09 09:09:03 -0500
committerRob Crittenden <rcritten@redhat.com>2012-02-19 20:23:20 -0500
commitefb37739ab1b3a7c9d87af7a2d8ed57a1d0d5abe (patch)
tree72685cbc802cad34c784969e5764fa76480483fa /install/updates/40-delegation.update
parent8125c11a8d26597972518735a18db63b5ea86c61 (diff)
downloadfreeipa-efb37739ab1b3a7c9d87af7a2d8ed57a1d0d5abe.tar.gz
freeipa-efb37739ab1b3a7c9d87af7a2d8ed57a1d0d5abe.tar.xz
freeipa-efb37739ab1b3a7c9d87af7a2d8ed57a1d0d5abe.zip
Add common helper for interactive prompts
This patch adds a common method, textui.prompt_helper, that handles encoding, decoding and error handling for interactive prompts. On EOFError (Ctrl+D) or KeyboardInterrupt (Ctrl+C), it raises a new InvocationError, PromptFailed. The helper is used in prompt, prompt_yesno, and prompt_password, each of which originally only handled one of Ctrl+C and Ctrl+D. This fixes https://fedorahosted.org/freeipa/ticket/2345 And it means prompt_yesno will no longer return None on error. A minor fix restores errors.py's ability print out the list of errors when run as a script.
Diffstat (limited to 'install/updates/40-delegation.update')
0 files changed, 0 insertions, 0 deletions