Mercurial > libervia-backend
diff frontends/src/primitivus/gateways.py @ 587:952322b1d490
Remove trailing whitespaces.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:34 +0100 |
parents | ca13633d3b6b |
children | 84a6e83157c2 |
line wrap: on
line diff
--- a/frontends/src/primitivus/gateways.py Fri Jan 18 17:55:27 2013 +0100 +++ b/frontends/src/primitivus/gateways.py Fri Jan 18 17:55:34 2013 +0100 @@ -44,7 +44,7 @@ list_wid = urwid.ListBox(widget_list) decorated = sat_widgets.LabelLine(list_wid, sat_widgets.SurroundedText(title)) urwid.WidgetWrap.__init__(self, decorated) - + def browseExternalServer(self, button): """Open the gateway manager on given server""" server = self.ext_serv.get_edit_text() @@ -58,15 +58,15 @@ self.host.removeWindow() def addGateway(self, widget_list, gateway, param): - + widget_col = [] widget_col.append(('weight',4,urwid.Text(unicode(param['name'])))) #FIXME: unicode to be remove when DBus bridge will not give dbus.String anymore - + #Then the transport type message widget_col.append(('weight',6,urwid.Text(self.getGatewayDesc(param['type'])))) #The buttons - + reg_button = sat_widgets.CustomButton( _("Register"), self.onRegister) reg_button.gateway_jid = JID(gateway) widget_col.append(('fixed',reg_button.getSize(),reg_button)) @@ -74,7 +74,7 @@ unreg_button.gateway_jid = JID(gateway) widget_col.append(('fixed',unreg_button.getSize(),unreg_button)) widget_list.append(urwid.Columns(widget_col,1)) - + def onRegister(self, button): """Called when register button is clicked""" gateway_jid = button.gateway_jid