[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH rhel6-branch] Use the same error message in text mode and GUI (#625809)



On Tue, 2011-01-11 at 13:42 +0100, Radek Vykydal wrote:
> It is a weak password message.
> ---
>  textw/userauth_text.py |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/textw/userauth_text.py b/textw/userauth_text.py
> index 8798348..ab7abd0 100644
> --- a/textw/userauth_text.py
> +++ b/textw/userauth_text.py
> @@ -81,10 +81,10 @@ class RootPasswordWindow:
>                  except ValueError, e:
>                      msg = gettext.ldgettext("cracklib", e)
>                      ret = anaconda.intf.messageWindow(_("Weak Password"),
> -                             _("You have provided a weak password: %s\n\n"
> -                               "Would you like to continue with this password?"
> -                               % (msg, )),
> -                             type = "yesno", default="no")
> +                              _("You have provided a weak password: %s") % msg,
> +                              type="custom", custom_icon="error",
> +                              default=0,
> +                              custom_buttons=[_("Cancel"), _("_Use Anyway")])
>                      if ret == 1:
>                          break
>                  else:

ack,

but what about the Cancel mnemonic, don't we want that too ?

-- 
Martin Gracik <mgracik redhat com>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]