From 05b78d2a5c4101e552954645df018b21aa32b8fb Mon Sep 17 00:00:00 2001 From: Martin Sivak Date: Tue, 24 Aug 2010 16:17:10 +0200 Subject: Improve the user experience - Expert tab is hidden by default - Config dialog checks the format of entered values - Example plugin for dialogs updated --- plugins/plugin_examples/dialogue.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/plugin_examples/dialogue.py') 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", -- cgit