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

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



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: pgpOX4fL7IqTd.pgp
Description: PGP signature


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