Re: [master 1/2] text.messageWindow(): make it more resilient to the input.

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

 



On Thu, Oct 07, 2010 at 05:27:26PM +0200, Ales Kozumplik wrote:
> Because snack is weak and will not accept e.g. an exception as the text
> parameter.
> ---
>  pyanaconda/text.py |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/pyanaconda/text.py b/pyanaconda/text.py
> index 3e52978..5a8fdab 100644
> --- a/pyanaconda/text.py
> +++ b/pyanaconda/text.py
> @@ -272,6 +272,7 @@ class InstallInterface(InstallInterfaceBase):
>  
>      def messageWindow(self, title, text, type="ok", default = None,
>  		      custom_icon=None, custom_buttons=[]):
> +        text = str(text)
>  	if type == "ok":
>  	    ButtonChoiceWindow(self.screen, title, text,
>  			       buttons=[TEXT_OK_BUTTON])

Ack

-- 
Brian C. Lane / Anaconda Team
Port Orchard, WA (PST8PDT)

Attachment: pgpsMTGC3siWY.pgp
Description: PGP signature

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux