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