[Sugar-devel] Replacing Illegal character ':' in username (SL #2152)

Sascha Silbe sascha-ml-reply-to-2010-3 at silbe.org
Wed Sep 29 14:37:38 EDT 2010

Excerpts from Dipankar Patro's message of Wed Sep 29 19:32:22 +0200 2010:

> @@ -42,6 +43,7 @@ def set_nick(nick):
>      if not nick:
>          raise ValueError(_("You must enter a name."))
>      if not isinstance(nick, unicode):
> +        nick = re.sub(r':', '_', nick)
>          nick = unicode(nick, 'utf-8')
>      client = gconf.client_get_default()
>      client.set_string("/desktop/sugar/user/nick", nick)

This would change the user-set (and user-visible) name. We should avoid
to do that unless we have a very good reason.
Instead it should be coped with at the lower-level place that breaks,
i.e. in the code interacting with the school server. Not sure exactly
which file that is, maybe someone else can give a better hint.


-------------- 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/20100929/13bf6c43/attachment.pgp 

More information about the Sugar-devel mailing list