Hi,<br><br>With reference to bug : <a href="http://bugs.sugarlabs.org/ticket/2152">http://bugs.sugarlabs.org/ticket/2152</a><br><br>I am trying to replace the ':' character in the username with '_', while the user is entering the Username in About Me.<br>
<br>The following has been done by me so far:<br>-------------------------------------------------------------<br>diff --git a/extensions/cpsection/aboutme/model.py b/extensions/cpsection/aboutme/model.py<br>index 8500799..47e7158 100644<br>
--- a/extensions/cpsection/aboutme/model.py<br>+++ b/extensions/cpsection/aboutme/model.py<br>@@ -17,6 +17,7 @@<br> <br> from gettext import gettext as _<br> import gconf<br>+import re<br> <br> _COLORS = {'red': {'dark':'#b20008', 'medium':'#e6000a', 'light':'#ffadce'},<br>
'orange': {'dark':'#9a5200', 'medium':'#c97e00', 'light':'#ffc169'},<br>@@ -42,6 +43,7 @@ def set_nick(nick):<br> if not nick:<br> raise ValueError(_("You must enter a name."))<br>
if not isinstance(nick, unicode):<br>+ nick = re.sub(r':', '_', nick)<br> nick = unicode(nick, 'utf-8')<br> client = gconf.client_get_default()<br> client.set_string("/desktop/sugar/user/nick", nick)<br>
----------------------------------------------------------<br>I need some feedback on this.<br><br>Also I am trying to put a check at boot up so that any 'nick' /username having ':' can be rectified at startup itself. I have tracked down the file jarabe/model/session.py<br>
<br>Regards,<br>Dipankar<br>