FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Desktop

 
 
LinkBack Thread Tools
 
Old 02-04-2011, 01:26 PM
Chris Lumens
 
Default In text mode we have to treat strings and lists separately while printing them (#674322)

> diff --git a/text.py b/text.py
> index bd694e3..e07553d 100644
> --- a/text.py
> +++ b/text.py
> @@ -304,7 +304,14 @@ class InstallInterface(InstallInterfaceBase):
> default=None, custom_icon=None,
> custom_buttons=[], expanded=False):
> t = TextboxReflowed(60, text, maxHeight=8)
> - lt = Textbox(60, 6, "
".join(longText), scroll=1, wrap=1)
> +
> + # if it is a string, just print it as it is (#674322)
> + if isinstance(longText, basestring):
> + lt = Textbox(60, 6, longText, scroll=1, wrap=1)
> + # if the argument is anything else we have to join it together (#654074)
> + else:
> + lt = Textbox(60, 6, "
".join(longText), scroll=1, wrap=1)
> +
> g = GridFormHelp(self.screen, title, help, 1, 3)
> g.add(t, 0, 0)
> g.add(lt, 0, 1, padding = (0, 1, 0, 1))

ACK.

David - your patch won't work here because this code gets called both
for these package messages (which are strings) and for exception
reporting (which is a list of strings).

- Chris

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

Thread Tools




All times are GMT. The time now is 01:35 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org