[PATCH] Translate None for LVM RAID selection (#974801)

Vratislav Podzimek vpodzime at redhat.com
Tue Jun 25 09:36:16 UTC 2013


On Mon, 2013-06-24 at 12:12 -0700, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
> 
> ---
>  pyanaconda/ui/gui/spokes/custom.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
> index da2808c..dfda5dc 100644
> --- a/pyanaconda/ui/gui/spokes/custom.py
> +++ b/pyanaconda/ui/gui/spokes/custom.py
> @@ -541,7 +541,7 @@ class ContainerDialog(GUIObject):
>  
>          selected_level_string = store[itr][0]   # eg: "RAID1 (Redundancy)"
>          level = selected_level_string.split()[0].lower()    # -> "raid1"
> -        if level == "none":
> +        if level == "none" or level == _("None").lower():
>              level = None
Ack to both branches, indeed. But this part of the code is a time bomb,
because the store contains translated strings (from the .glade file)
which we split, lower and compare. That should be changed/fixed in the
F20 scope. Adding it to my TODO list.

-- 
Vratislav Podzimek

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



More information about the anaconda-patches mailing list