/srv/irclogs.ubuntu.com/2010/10/11/#ubuntu-sugarteam.txt

=== manusheel is now known as manusheel_afk
=== manusheel_afk is now known as manusheel
=== mukul_afk is now known as mukul
=== mukul is now known as mukul_afk
=== mukul_afk is now known as mukul
manusheelshan: Hi Shan.17:51
shanmanusheel, hello sir17:51
manusheelshan: Around?17:51
shanmanusheel, yes sir17:51
shani am here17:51
manusheelshan: You were able to include the recommendations by alsroot in your patch, except one of them.17:53
manusheelshan: Your response was quick, which is good.17:53
shanmanusheel, yes sir, i will have a word with alsroot now.17:53
shanalsroot, hi around?17:54
manusheelshan: Did you discuss with Aleksey on how you plan to implement the remaining feature?17:54
alsrootshan: ho17:54
shanalsroot, hi, i had a look at the pointers provided by you yesterday. but, since downloaded activities show in the journal directly. I see no reason as to why implement a get_journal.resume.17:57
shandownloaded activities show only up in the journal. *17:57
alsrootshan: what about resuing from journal palette or from pasting an .xo from clipboard17:58
shanalsroot, i could be wrong here, do correct me if i am. Even after pasting it has to be launched from the journal.18:00
alsrootshan: on pasting journal execs misc.resume thus downgrading will silently skipped18:01
alsroots/pastings/resumed-from-palette-or-from-details-dialog/18:02
shanexecs?18:03
alsrootshan: executes18:03
shanalsroot, okay. having a look now. get back to you in some time. So, that will be the only issue right?18:07
alsrootshan: the issue is simple, instead of adding alert to 3 places(and possible new resume invocations), better to have it in resume()18:08
shanalsroot, so basically what i should try to implement is  "try not using listview.py and somehow get the pop-up alert to be started from misc.resume "18:14
shanalsroot, would that be a much appropriate approach?18:15
alsrootshan: not from misc.resume, it can't import activity class (to avoid circle dependencies), as I said, I can't find better option than moving misc.resume to journal activiity class method18:16
shanalsroot, i think i got your idea. This wouldn't be involving changing misc.resume to get_journal.resume ?..would it?18:21
alsrootshan: what I meant is just moving misc.resume() to JournalActivity.resume, get_journal() is just a method to get JournalActivity instance18:22
mukulalsroot: Does sugar crash whenever an unhandled python exception occurs? Then 2063 doesn;t make much sense.18:22
alsrootmukul: afaik it doesn't18:24
mukulalsroot: Can I test that?18:25
alsrootmukul: just grep for all alert invocations in sugar prokect sources18:25
alsrootmukul: oops, sugar can be aborted on exception while launching18:27
alsrootmukul: but after that, all unhandled exceptions will be just logged18:27
alsroot..it is not sugar specific but regular glib/gtk behaviour because exceptions could be thrown only as reaction on glib event18:28
mukulalsroot, Ok I get it.18:31
alsrootmukul: forget about alert invocations, I jsut misread ticket18:32
manusheelalsroot: Making changes at sugar.logger APIs won't help?18:34
alsrootmanusheel: yeah, looks like, there is excepthook18:35
manusheelalsroot: Ok, then, we should be able to resolve it by introducing changes at the Sugar API level.18:36
alsrootmanusheel: why? just doing some stuff in excepthook w/o API changes18:38
manusheelalsroot: Ok, that was a proposal. Great, if we can do changes using the excepthook without API changes, that would be great.18:39
shanalsroot, yes, yes. sorry i mistyped. But will we be moving misc.resume() to JournalActivity.resume everywhere? or only in listview.py?18:41
shanby everywhere, i mean all those places, where misc.resume() is invoked. We would not be doing that right? ( i am asking this just to confirm the thought process )18:42
manusheelmukul: Did you discuss with alsroot on the excepthook available to us at the Sugar level?18:44
mukulmanusheel: No. a18:44
alsrootshan: since misc.resume will be moved to JournalActivity.resume, you need to change all misc.resume invocation (might look invasive but this fix will go to 0.92 I guess)18:44
mukulalsroot: Can you guide me on this excepthook feature?18:46
alsrootmukul: see python docs for sys module18:47
shanalsroot, that would mean, that misc.resume will never be required again and instead wherever it was to be called JournalActivity.resume should be called in its place. This will take considerable time too. Also, in all places where this is to be done importing of JournalActivity (and others if any ) will be required. right?18:51
alsrootshan: yup, in all this code import journal.misc anyway so importing another journal module is not a problem18:52
shanyes, that won't be a problem, will do that. Thanks a lot. I will try this out immediately and will get back to you in a while.18:53
mukulalsroot: How can excepthook by used for Bug 2063?19:19
ubot2Launchpad bug 2063 in launchpad-foundations "Trying to reach upstream of a package gives me an error" [Medium,Fix released] https://launchpad.net/bugs/206319:19
alsrootmukul: thats the question, anyway if you need a hook for unhandled exceptions, excepthook is the option19:20
=== mukul is now known as mukul_afk

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!