diff options
author | Martin Sivak <msivak@redhat.com> | 2010-08-24 16:17:10 +0200 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2010-08-24 16:17:10 +0200 |
commit | 05b78d2a5c4101e552954645df018b21aa32b8fb (patch) | |
tree | 88ce337f89088b04fd18e1a38d4fc1c7d2924b21 /plugins/plugin_examples | |
parent | f273fe2502adf3023d816c9f495fad12140c9ddb (diff) | |
download | firstaidkit-05b78d2a5c4101e552954645df018b21aa32b8fb.tar.gz firstaidkit-05b78d2a5c4101e552954645df018b21aa32b8fb.tar.xz firstaidkit-05b78d2a5c4101e552954645df018b21aa32b8fb.zip |
Improve the user experience
- Expert tab is hidden by default
- Config dialog checks the format of entered values
- Example plugin for dialogs updated
Diffstat (limited to 'plugins/plugin_examples')
-rw-r--r-- | plugins/plugin_examples/dialogue.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/plugin_examples/dialogue.py b/plugins/plugin_examples/dialogue.py index bcc5a00..d5c1857 100644 --- a/plugins/plugin_examples/dialogue.py +++ b/plugins/plugin_examples/dialogue.py @@ -78,9 +78,9 @@ class DialoguePlugin(Plugin): level = PLUGIN) config_options = [ - ("id:1", "PL", "5", "Password length"), - ("id:2", "PS", "C", "Password strength"), - ("id:3", "PL", "aA0.", "Password chars"), + ("id:1", "PL", "5", "Password length", "[1-9][0-9]*", "The length must be a valid number bigger than 0."), + ("id:2", "PS", "C", "Password strength", "[A-F]", "Use strength indicator A, B, C, D, E or F"), + ("id:3", "PL", "aA0.", "Password chars", ".*", "Any allowed characters.."), ] s = self._reporting.config_question_wait("Setup choices", |