[PATCH 2/2] Show msg in TUI if user attempts to create invalid username. (#965561)

Vratislav Podzimek vpodzime at redhat.com
Fri Dec 13 14:36:27 UTC 2013


On Fri, 2013-12-13 at 09:12 -0500, Samantha N. Bueno wrote:
> ---
>  pyanaconda/ui/tui/spokes/__init__.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/pyanaconda/ui/tui/spokes/__init__.py b/pyanaconda/ui/tui/spokes/__init__.py
> index 9972c26..0ed9278 100644
> --- a/pyanaconda/ui/tui/spokes/__init__.py
> +++ b/pyanaconda/ui/tui/spokes/__init__.py
> @@ -149,6 +149,8 @@ class EditTUIDialog(NormalTUISpoke):
>              self.close()
>              return True
>          else:
> +            print _("You have provided an invalid username: %s\n"
> +                    "Do not user spaces or capital letters.\n") % key
                              ^ use

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list