Files
freeipa/ipalib
Petr Viktorin efb37739ab 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.
2012-02-19 20:23:20 -05:00
..
2012-01-20 08:13:44 +01:00
2011-04-21 10:41:29 +02:00
2010-12-20 17:19:53 -05:00
2011-11-15 13:17:44 +01:00
2012-01-20 08:13:44 +01:00
2011-12-06 22:07:35 +00:00
2011-01-25 14:01:36 -05:00
2012-02-20 15:34:45 +01:00