[01:27] alsroot: agreed. === bernie_afk is now known as bernie [14:31] lfaraone, hi === bernie is now known as bernie_afk [16:08] alsroot, hi, goodmorning [16:08] dipankar: hi [16:11] alsroot, I am working on the bug https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/617813 [16:11] Launchpad bug 617813 in sugar-0.88 (Ubuntu) "sugar freezes when register widget is clicked (affects: 1) (heat: 6)" [Critical,Confirmed] [16:11] alsroot, the one on which I was working on yesterday too [16:11] alsroot, I am unable to track down the code for register button and the actions related to it [16:12] alsroot, could you guide me find the exact file [16:12] ? [16:14] dipankar: just find for substring "'Register'", it is favoritesview.py in sugar [16:15] dipankar: its handle emit 'register-activate', so find for "connet.*register-activate" to find who process this signal [16:16] *connect [16:16] alsroot, thanks a lot [16:17] lfaraone, hi [16:20] alsroot, what I want to do is, remove that grey rectangle appearing there, [16:21] dipankar: grey rectangle? [16:22] alsroot, yeah, when I try to register, sugar freezes completely and a *gray rectangle is there in place of the right click menu [16:22] dipankar: ah got it [16:23] dipankar: the only way I see here is make process async [16:24] alsroot, I was thinking of the same, this again leads to the gtk cycles, gio and all those components [16:24] :) [16:28] alsroot, http://paste.ubuntu.com/485013/ -- if I need to make it async, where do I need to change the code then? [16:29] manusheel, http://paste.ubuntu.com/485013/ -- I think the change for RegisterError here is required [16:30] alsroot, manusheel, how can I edit RegisterError [16:30] ? [16:32] dipankar: the core issue here is that xmlrpclib is not async by itself (the code you posted is calling schoolserver.register_laptop, which calls xmlrpclib.ServerProxy.register) [16:33] dipankar: btw, it uses default schoolserver url i.e. http://schoolserver:8080/ [16:34] of course it can't find it in ubunut case (there is no school servers run on users local host) [16:34] alsroot, how can I track the methods called? I mean the way you told that schoolserver.register_laptop calls xmlrpclib.ServerProxy.register [16:35] alsroot, yup. But we are targeting, jabber-servers for registrations. [16:35] dipankar: use grep luke [16:35] grep for "def register_laptop" [16:35] grep luke? [16:36] dipankar: I meant, just find for method name in sugar sources :) [16:37] alsroot, I have tried a lot of sites but I am unable to use grep properly. The one by which we can search a file by content. [16:37] alsroot, please help in this a bit too [16:38] dipankar: just call "grep 'def register_laptop' -R " [16:38] but /me uses mc for all files related operations [16:39] at the ends it is all up to particular user, to utilize tools he likes more [16:39] you just need a search, use what you prefer more [16:40] alsroot: can a custom button be added to the toolbar ? [16:41] kandarpk: why not, what particular class(of toolbar) you mean [16:41] ? [16:42] alsroot: I wanted to add a back button there [16:43] kandarpk: I meant, toolbar class you are going to add button to, ActivityToolbar? [16:44] alsroot: other buttons are added in toolbar_box.toolbar [16:44] I would like to add it along with them [16:44] kandarpk: toolbar_box.toolbar is regualr gtk.Toolbar, so you can use its methods [16:44] http://library.gnome.org/devel/gtk/stable/GtkToolbar.html [16:48] dipankar: just fast hack, you can try to urlopen given to register_laptop() url, if it fails then given url is invalid -- but, if you are going to do it right (i.e. propose patch to upstream) and sure about particular implementation, ask people - send en eamil to sugar-devel@ [16:49] s/and sure about particular/and *not* sure about particular/ [16:59] alsroot: thanks. [17:00] yw [17:01] alsroot: I added a toolbutton using [17:01] class BackButton(ToolButton): [17:01] def __init__(self, **kwargs): [17:01] ToolButton.__init__(self, 'back', **kwargs) [17:01] self.props.tooltip = _('Back') [17:02] alsroot: how do I run a command when it is clicked ? [17:04] kandarpk: ToolButton(wich is at the end gtk.ToolButton) has clicked signal, http://library.gnome.org/devel/gtk/stable/GtkToolButton.html#GtkToolButton-clicked [17:05] kandarpk: connect to it from code that is intended to use something on click [17:05] *do something [17:05] alsroot, sure [17:05] alsroot, I will send an e-mail to sugar-devel [17:06] alsroot, I think by jabber server, you mean the one we set in the control panel settings right? [17:08] alsroot, currently mine is set at : jabber.sugarlabs.org : working perfectly fine [17:09] * dipankar is off to dinner [17:18] alsroot: how can I assign Left Key to the back button ? [17:20] kandarpk: set accelerator property value to "" [17:20] alsroot: thanks. [17:24] alsroot: 'Left' worked :) [17:44] alsroot: the activity isn't asking for the Journal entry on stopping [17:46] kandarpk: Activity class calls write_file() on activity, see inline comments for sugar-toolkit/src/sugar/activity:Activity class [17:47] *sugar-toolkit/src/sugar/activity/activity.py:Activity [18:27] alsroot: can we add hyperlinks in sugar? [18:28] kandarpk: you can add everything that gtk supports :) [18:29] kandarpk: see pygtk-demo app, "Text Widget/Hypertext" example [18:29] alsroot: great :) === bernie_afk is now known as bernie