[Sugar-devel] [PATCH] fixes sl#2062
Sascha Silbe
sascha-ml-ui-sugar-devel at silbe.org
Fri Jul 2 04:42:06 EDT 2010
Excerpts from Tim McNamara's message of Fri Jul 02 02:09:17 +0000 2010:
> Index: src/jarabe/desktop/favoritesview.py
> ===================================================================
> --- a/src/jarabe/desktop/favoritesview.py
> +++ b/src/jarabe/desktop/favoritesview.py
> @@ -323,6 +323,12 @@
> except RegisterError, e:
> alert.props.title = _('Registration Failed')
> alert.props.msg = _('%s') % e
> + except TypeError:
> + # raised by xmlrpclib.py when XO attempts to
> + # register itelf while offline: sl#2062
> + alert.props.title = _('Registration Failed')
> + alert.props.msg = _('Please try connecting to '\
> + 'the network.')
> else:
> alert.props.title = _('Registration Successful')
> alert.props.msg = _('You are now registered ' \
TypeError should be catched in jarabe.desktop.schoolserver.register_laptop()
and rethrown as a RegisterError.
Sascha
--
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100702/0d7fb896/attachment.pgp
More information about the Sugar-devel
mailing list