/srv/irclogs.ubuntu.com/2010/09/02/#ubuntu-sugarteam.txt

lfaraonedfarning: I just tested Surf on stock Ubuntu 10.10 and it crashed as I experienced...01:38
* lfaraone is looking at Speak\01:41
=== bernie is now known as bernie_afk
lfaraonemanusheel: is kandarp around?02:48
lfaraonexxkill04:21
lfaraonealsroot: you could get ubuntulo1 or meeting04:26
alsrootlfaraone: I'm already setting up supybot, looks like it is pretty powerful04:42
alsrootat least it has bunch of plugins (including meeting)04:43
=== bernie_afk is now known as bernie
berniedfarning: this looks like a very good bug to get someone's teeth cut: http://bugs.sugarlabs.org/ticket/216311:12
berniemanusheel:  this looks like a very good bug to get someone's teeth cut: http://bugs.sugarlabs.org/ticket/216311:48
manusheelbernie: Yes, Bernie. Indeed :-)11:49
manusheelbernie: Any pointers that you would like to share - files we should look at, functions and variables?11:50
=== neeraj_ is now known as neeraj
berniemanusheel: not sure... the bug might be somewhere in the FavouritesLayout class12:11
berniemanusheel: which is part of the "sugar" module12:11
berniemanusheel: I noticed that your developers are debugging right in Dextrose. this is ok for platform bugs, but it's not a comfortable work environment for sugar bugs.12:11
berniemanusheel: once they've reproduced the bug in Dextrose, it would save time if they could reproduce the same bug in jhbuild too, where they could take full advantage of a ful linux development environment and version control12:12
berniemanusheel: even if they fix the bug in the code in /usr/lib/something, then they'd have to redo the change in git to send a patch. so it's not really saving any time to debug directly on the XO12:13
berniemanusheel: again, I'm talking about sugar bugs, not driver/kernel bugs of course12:13
alsrootmanusheel: ok, it's ready to use12:49
manusheelalsroot: Great.12:49
=== bernie is now known as bernie_afk
manusheelalsroot: Where can we find the logs?14:00
manusheelOf #sugar-newbies14:00
alsrootmanusheel: still in progress, trying to figure out how to make them useful, ie searching14:01
manusheelalsroot: Sure.14:02
manusheelalsroot: Great.14:03
lfaraonealsroot: aka "site:foo.bar.baz query" in Google? :)14:05
alsrootlfaraone: if got it right it wont be reliable (we need to pay google otherwise), but since I'm so eager to web code by myself, it could be good for the first time :)14:07
lfaraonealsroot: pay google? huh?14:07
alsrootbut /me is still looking for decent options14:07
lfaraonealsroot: http://www.google.com/search?q=site%3Airclogs.ubuntu.com+alsroot14:08
lfaraone*  http://www.google.com/search?q=site%3Airclogs.ubuntu.com+"alsroot"14:09
alsrootlfaraone: http://www.google.com/sitesearch/, see pricing, but anyway I'm tending to just enable google search14:10
lfaraonealsroot: you want http://www.google.com/cse/14:11
alsrootlfaraone: nope, I was just thinking that "site:" options won't be reliable, e.g., debina.org uses xapian for searching within mls/packages/etc14:12
dfarningneeraj, ping14:34
neerajdfarning: pong14:35
dfarningneeraj, how close are you to release usr-meta?14:36
lfaraonedfarning: I don't think it was clear as to whether you wanted us to do two releases of USR, one now with existing pacakges and one later once everything's synced.14:36
lfaraoneneeraj: by the way, "turtleart" was accepted from Debian NEW and probably is a good thing to have over in Ubuntu-land. :)14:37
neerajlfaraone: great :)14:37
neerajdfarning: We had an schedule meeting with luke today for discussing these stuff.14:38
dfarninglfaraone, neeraj it wasn't clear.... because I didn't say.  You guys have a better understand of the state to packageing than I do.14:38
neerajActually some packages are in sync state at present. So, if we want them in USR then we will have to wait to them to get released in upstream.14:38
lfaraoneneeraj: you mean we'll have to wait for the syncs to get processed by an archive administrator.14:39
dfarningneeraj, what time is your meeting? I would like to listen.14:39
lfaraoneneeraj: "upstream" means Debian or Sugar Labs, and they aren't required to take any action here.14:39
lfaraonedfarning: 10:30 I think was what I agreed upon with manusheel earlier.14:40
alsrootlfaraone: and looks like I found one :), nice demo app consists of 117 lines in python and provide exactly what I need, search string and pagination of results -- it's looking to xapian db14:40
neerajlfaraone: sorry my bad. I meant in ubuntu :)14:40
dfarninglfaraone, thanks14:41
neeraj*brb14:41
lfaraoneif manusheel 's around, I'm happy to hold it earlier.14:41
dfarninglfaraone, I am in no hurry.  I am going to do release of the ISO.  I will probobly be easiest to hard code the activites in 10.10 into the build script.14:43
neeraj lfaraone we can start in 10 min14:47
manusheellfaraone: I am around.14:48
lfaraonemanusheel, neeraj, want to hold it at 10h instead? (12m from now)14:48
manusheellfaraone: Sure.14:49
neerajsure.14:49
lfaraoneokay, let's get started.15:02
dfarninglfaraone, +115:02
lfaraone#startmeeting15:02
meetingMeeting started at 10:02 UTC. The chair is lfaraone.15:02
meetingCommands Available: #TOPIC, #IDEA, #ACTION, #AGREED, #LINK15:02
lfaraone#TOPIC Agenda15:03
lfaraonemanusheel, neeraj, do we have an agenda of what we want to discuss? I'd like to keep this short, so keeping to a list of topics will help us do that.15:03
manusheellfaraone: Sure. One is arriving at a conclusion on whether to keep sugar-record, irc and e-toys as a dependency for this release, or not?15:05
lfaraoneOkay. I've prepared a short topics list.15:06
lfaraone#LINK http://openetherpad.com/6b86BdsfpN15:06
dfarning1. Package Status. 2. Browse/Surf Update 3. weekly objectives15:06
lfaraone#link http://openetherpad.com/6b86BdsfpN15:06
lfaraonehmmm. Not sure whether meetbot is getting those, but w/e.15:07
manusheeldfarning: Great.15:07
lfaraone#topic Keeping s-{record, irc, etoys}-a as deps for this release15:07
lfaraoneIf I recall, neeraj, you've got sync requests for all of these right now, correct?15:08
neerajlfaraone: As discussed on mail, yes for irc,record and etoys15:08
lfaraoneneeraj: right.15:08
neerajWe will add etoys as recommends only.15:08
lfaraoneSo etoys can't be a dependency for this release because it's in multiverse.15:09
dfarninglfaraone, I think dogi usually cuts and pastes the contents of etherpad to irc so it goes into the meeting recored.15:09
lfaraoneneeraj: recently, "Recommends:" are installed by default by apt-get.15:09
lfaraoneneeraj: so it'll have to drop to a "Suggets:".15:09
lfaraonedfarning: fair enough. Here's the current contents:15:09
lfaraone    * Status of sugar-*-activities15:09
lfaraone    * Keeping s-{record, irc, etoys}-a as deps for this release15:09
lfaraone    * Browse / Surf update15:09
lfaraone    * QA delegation15:09
lfaraone    * Updating usr-meta15:09
lfaraone    * Other weekly objectives (ACTIONs)15:09
neerajlfaraone: Ok. I will add etoys as suggests then15:10
lfaraonemanusheel: since irc and record will both be in universe, there's no reason not to add them, once they're in the archive.15:11
lfaraonemanusheel: and since the SRU has already been ACK'd by a MOTU and the release team, it'll be processed some time before final release, and it'll be handled even if it's after Final Freeze because it was "in the queue" before-hand.15:11
lfaraones/SRU/FFe/15:11
lfaraonethe only thing now is whether we want to add the currently existing activities in the archive to usr-meta and do an upload now, or wait later and get them all in one swoop.15:12
dfarninglfaraone, +1 for moving etoys to suggests.  It become a hurdle for oems and resellers to ship multiverse.15:12
neerajlfaraone: +1. thats my doubt.15:12
lfaraonethe pros of doing it all now: we don't have to special-case in the build scripts, we enable `apt-get`tability for testers, and in case for some reason the syncs aren't processed or its too late to upload usr meta we at least have what we have now in the metapackage.15:13
dfarningneeraj, how much work is it to do a usr-meta?15:14
lfaraonethe cons are: additonal work of preparing another upload (may be negligable and/or good practice for us), and having to bug an archive admin to process the upload. (rubber-stamp, essentially)15:14
lfaraones/it all now / in two loads/g15:14
neerajdfarning: no work at all. I have to just make change in control file15:14
manusheellfaraone: Ok. But, how much time will it take for these activities to get accepted in MOTU?15:15
dfarningneeraj, then please do one today.  pros outweigh the cons.15:15
lfaraonemanusheel: for the ones that neeraj filed a sync request for to be accepted in Universe? some time between now and 2010-10-10 :)15:16
manusheellfaraone: We would not want meta package failures, and would also like to make sure QA is done once the iso is ready. Keep 1 week contigency time before the release (Sep. 3).15:17
lfaraoneneeraj: we'll have to talk a little bit about that, by the way, since it's not just "add the deps directly to control", it's "add them to the metapackage in a special file", but you'd need to learn that eventually :)15:17
lfaraonemanusheel: er, sep 3 is over a month from the final release. The *FinalFreeze*, on the other hand, is Sept 1515:17
lfaraone(2010-09-15)15:18
manusheellfaraone: Sorry, I meant October 3. Not, Sep. 315:20
manusheel7 days before October 10.15:20
lfaraonewell, at that point, we'll already be in FinalFreeze. *Ideally*, we'll have all of our changes in before the FinalF and have a month for testing, but it may not end up that way.15:21
lfaraoneneeraj, dfarning, manusheel, so do we all think that it's a good idea for Neeraj to include all current shippable universe activities in usr-meta?15:22
lfaraone(and to do a different upload later)15:22
dfarning+115:22
manusheellfaraone: +115:23
neerajlfaraone: Ok. current shippable does not include irc,record and etoys. Right?15:23
lfaraoneneeraj: if it's not in universe as of yet, it's not currently shippable :)15:24
manusheellfaraone: Right.15:24
lfaraoneneeraj: easy way to check is "rmadison PACKAGE_NAME" which will show you whether the package is in Ubuntu, which release, suite, and version.15:24
lfaraone#ACTION neeraj to look into adding all sugar-*-activity* packages currently in universe to usr-meta15:25
lfaraone#agreed do an upload of usr-meta with all activities available now, and one later if possible for record and irc when synced.15:26
lfaraone#topic Browse / Surf updates15:26
lfaraonemanusheel: who's working on this on the SEETA side?15:27
lfaraoneWhen I tried Surf earlier today in a clean Maverick VM it crashed on start. (using the .deb, not the .xo bundle)15:27
lfaraonethe issue with browse as I understand it is still a dependency issue, which needs to be worked out with the mozillateam.15:27
manusheellfaraone: Mukul and Ishan are working on it.15:28
manusheellfaraone: Right.15:28
lfaraonemanusheel: what's their progress on it?15:28
dfarningneeraj, I just added a list of what apt-get tries to install to http://openetherpad.com/6b86BdsfpN15:29
lfaraonedfarning: sugar-jukebox-activity-0.88?15:31
manusheellfaraone: Hulahop library was broken in Ubuntu. So, I ask them to halt the process. They'll submit a fresh request r? by tomorrow.15:31
lfaraonemanusheel: okay. the issue with hulahop is I don't really have any involvement in that arena, they'll need to talk to the people in #ubuntu-mozillateam.15:32
dfarninglfaraone, let me run it again.15:33
lfaraonedfarning: that package is not in debian or Ubuntu…15:33
neerajdfarning: all the packages which u listed are not in Maverick15:33
manusheellfaraone: Fine. I'll do that today.15:33
manusheellfaraone: We did write to Mozilla guys. Got a reply too.15:33
lfaraonemanusheel: the Mozilla *Ubuntu* team?15:33
shachi__dipankar,  hi15:34
dfarninglfaraone, neeraj ok I am deleting all of sugar and going to try a freash install and see what gets pulled in.15:34
lfaraonedfarning: I just did an apt-cache search and posted the results.15:35
dfarningneeraj, does lfaraone's list look right to you?15:35
manusheellfaraone: We did forward the reply too. It seems the packages are in unstable state. Mike Hommey from Ubuntu looks after it.15:36
lfaraoneminus read, of course.15:36
lfaraonemanusheel: right.15:36
lfaraonemanusheel: so any work on hulahop would need coordination with him and other members of the mozillateam.15:36
manusheellfaraone: Right, absolutely.15:37
lfaraonemanusheel: when I talked with micahg, he seemed to not feel comfortable shipping pyxpcom, which hulahop requires, because pyxpcom does not seem to be maintained upstream.15:37
manusheellfaraone: Yes, we got the same vibes from Mike too. He said it is in unstable state.15:37
lfaraoneokay. so we'll get an update from ishan and mukul re that tomorrow.15:38
manusheellfaraone: Yes.15:39
manusheellfaraone: How about Surf package?15:40
manusheellfaraone: Does it have dependency issues?15:40
lfaraonemanusheel: Surf has no dependency issues as far as I'm aware, but it segfaults whenever you click a link in my tests.15:41
lfaraonewith regards to shipping sugar-firefox-activity, the intergration does not work at all. I was not able to use the Firefox theme that makes the text readable under the Sugar GTK theme.15:43
lfaraoneNor did the journal XPI work OOTB.15:43
lfaraoneIn order to ship Firefox.activity as Firefox.activity and not, say, "Abrowser.activity" (which is available in Ubuntu, btw, as "abrowser"), the Mozillateam folks still felt we'd need trademark approval.15:44
manusheellfaraone: Right. Sugar Firefox is not be maintained well too.15:44
lfaraonedfarning: you said that's changed recently but docs have not been updated. Do you think it's worth following up with the Mozilla team  on that?15:44
manusheellfaraone: It is at an experimental stage.15:44
lfaraonemanusheel: yes, but on the other hand it's the only web browser that will *run* in sugar on Ubuntu :(15:45
manusheellfaraone: We did write to Rabi. Didn't hear from him.15:45
lfaraonemanusheel: Rabi?15:45
dfarninglfaraone, is it possiable to put a wrapper around the FF that ubuntu ships?15:46
lfaraonemanusheel: C. Scott was the guy who wrote Firefox.activity15:46
manusheellfaraone: Yes, C. Scott wrote it.15:46
manusheellfaraone: But, it was OLE Nepal guys, who were using that activity.15:46
lfaraonedfarning: yes, that's what Firefox.activity does, albiet with some custom extensions and javascript settings. as of today, those settings are present but unapplied, so technically it's probably not violating trademark guidelines.15:47
lfaraonemanusheel: ah, so they've made some updates to the activity?15:47
manusheellfaraone: Also, maintaining it.15:47
manusheellfaraone: I don't think so. If yes, didn't see it at the git.15:48
manusheellfaraone: We did write to them too around 9-10 days back.15:48
manusheellfaraone: No response on this thread.15:48
dfarninglfaraone, can you include the firefox as is?  will it at least browse the web?15:49
lfaraonedfarning: I think so.15:49
lfaraonemeaning, it did in my tests.15:50
dfarninglfaraone, ok lets go with FF as is. this means dropping browse and surf until the next release.15:50
lfaraonedfarning: here's what it looks like in sugar-emulator: http://img714.imageshack.us/img714/7913/screenshotey.png15:51
dfarninglfaraone, neeraj can you guys package and upload the existing FF. lfaraone can you work with upstream about the treade mark issue if we get approval we will ad the setting and javascript if we have time.15:52
neerajlfaraone: Did you find the source tarball of Mozilla Firefox activity?15:54
dfarninglfaraone, it is not perfect... but currently we are spending time on browse which is does not work and will be dropped and surf which does not work yet.  neither or which are moving us forward.15:55
lfaraoneneeraj: yes. it's already in a git repository that I just haven't pushed up yet.15:56
dfarningmanusheel, please drop all work on browse and browse dependencies.15:58
dfarningmanusheel, please postpone all work on surf and surf until the next release.15:58
lfaraonefair enough.15:59
lfaraone#action manusheel to inform SEETA team members that work on surf/browse is tabled for this cycle16:00
lfaraone#topic QA delegation16:00
lfaraoneWe have testers, right? if not, we should look into a call-for-testing once we have a build that dfarning feels is ready for semi-public consumption.16:00
manusheeldfarning: Sure. Will do that now.16:01
dfarninglfaraone, the best group will be the NZ testers, satellit_ is also a great testing resource.16:01
lfaraonedfarning: cool. so we'll just ask them to take a look at it, say, the last week or so of Sept?16:02
lfaraoneor tomorrow, once we get our packages in usr-meta. Beta was today IIRC16:02
lfaraone(for Ubuntu as a whole)16:03
dfarninglfaraone, I am doing am ISO build with the packages we talked about this morning.  Let's ask satellit_to take a initial look at it, if it works reasonably well we can release it as a beta.16:03
lfaraoneokay, sounds good.16:04
lfaraone#action dfarning to review ISO build with activities for potential beta status.16:04
lfaraone#topic Updating usr-meta16:05
lfaraoneWe pretty much already discussed this, neeraj and I will work on that later today/tomorrow. Any other thoughts on this subject?16:05
manusheeldfarning: Once we are ready with beta iso, please let me know too. Will ask the team to do testing using the test plans.16:06
lfaraone#topic everything else16:07
lfaraoneAs we're into the second hour, does anybody have something we didn't talk about earlier that needs to be discussed?16:07
dfarninglfaraone, I think that is good.16:08
lfaraonecool.16:08
lfaraone#endmeeting16:08
meetingMeeting finished at 11:09.16:08
meetingLogs available at http://me.etin.gs/ubuntu-sugarteam/ubuntu-sugarteam.log.20100902_1002.html16:08
manusheellfaraone: Thank you for your time today.16:09
lfaraonemanusheel: my pleasure.16:09
lfaraonedfarning: is there a reason you added deps directly to the control file rather than modifying the ubuntu-sugar-remix-{$ARCH} files?16:10
dfarninglfaraone, no.  It was just a cut and paste from ubuntu-netbook-remix with a couple of personal hacks,16:11
dfarningmanusheel, will kandarpk be around later.  I would like to have a brief status meeting with him and dipankar about the develpment/maintaince progress on USR.16:14
dipankardfarning, good morning16:15
dfarningdipankar, god morning16:15
dfarninggood16:15
manusheeldfarning: Sure, we can have a status meeting with Dipankar. Kandarp is traveling today and might be late. We can start the meeting now, if you wish.16:15
dfarningmanusheel, let's do it when kandarpk is around... he should be the one chairing the meeting.16:17
manusheeldfarning: Ok. Sure.16:18
* satellit_ glad to test when it is ready16:18
* lfaraone → lunch.16:18
dipankarmanusheel, dfarning : what is the meeting about?16:18
dfarningsatellit_16:18
manusheeldipankar: Updates on the bugs and feature requests assigned as discussed in our in-house meeting recently.16:19
dfarningdipankar, I would like to get a handle on progress on https://edge.launchpad.net/ubuntu/+bugs?field.bug_supervisor=sugarteam16:19
dfarningdipankar, what is the status of https://bugs.edge.launchpad.net/ubuntu/+source/sugar-0.88/+bug/617813 ?16:21
ubot2Launchpad bug 617813 in sugar-0.88 (Ubuntu) "sugar freezes when register widget is clicked (affects: 1) (heat: 207)" [Critical,Confirmed]16:21
dipankardfarning, on above bug, I contact bernie16:22
dfarningdipankar, what did you decide to do?16:23
dipankardfarning, as you suggested, I tried putting yup a time lag check on the network connection setup16:23
dipankarfor register16:23
dipankarbut bernie told that we can't16:23
dipankarand he referred to a sugar-0.84 bug, similar to ours.16:23
dfarningwhat is the number of the sugar bug?16:24
dipankardfarning, just a sec16:24
manusheeldfarning: http://bugs.sugarlabs.org/ticket/115216:24
dipankardfarning, bernie referred to this one: http://bugs.sugarlabs.org/ticket/115216:24
satellit_[Sugar-devel] Findings for Register Bug LP #617813 also16:24
ubot2Launchpad bug 617813 in sugar-0.88 (Ubuntu) "sugar freezes when register widget is clicked (affects: 1) (heat: 207)" [Critical,Confirmed] https://launchpad.net/bugs/61781316:24
dfarningdipankar, what do you think you should do?16:25
dipankardfarning, I was trying to go through it, having difficulty in thinking of a plan.16:26
dipankardfarning, initiall I thought we can put check16:26
dipankarbut when I tried, I came to realize we can't16:27
dipankardfarning, is registration important? just asking16:27
manusheeldipankar: Absolutely.16:27
manusheelIt is critical.16:27
dipankarohk,16:27
dfarningdipankar, why can't you put in a check16:28
dipankardfarning, to put a check I think we need to go to the library level16:28
dipankardfarning, that would involve, send the data packet, wait for sometime16:29
dipankarand if the time is exceeding a set lag time, drop the process16:29
dipankarand raise an error16:29
dipankarjust like e.g. ping16:29
dipankarwe ping the site16:30
dipankarif the ttl is high16:30
dipankardrop the process16:30
dfarningdipankar, what do you mean by libary level?16:30
dipankardfarning, I didn't get the exact word, sorry for using it. I meant manipulating the networking process itself16:31
dipankardfarning, the code we have right now is: schoolserver.py16:31
dipankardfarning, that directly call network functions16:31
dipankardfarning, if some how we change those network functions, the way they work16:32
dfarningdipankar, what module contains this code?16:33
dipankardfarning, let me check yup a bit16:34
dipankardfarning, the function is ServerProxy()16:36
dipankarthat creates a proxy object16:36
dipankarand later their functions are called16:37
dipankardfarning, just a sec16:37
dipankarlet me provide the link16:37
dfarningdipankar, where is serverproxy?16:37
dipankarhttp://docs.python.org/library/xmlrpclib.html16:37
dipankardfarning, I think it is in : xmlrpclib16:38
dfarningdipankar, ok got it. ServerProxy() is making a remote functional and it is just waits until it receives a response form the server16:43
manusheeldipankar: Neat. What David is interested is in the Sugar api modules, which are gconf and logger in this case.16:43
dipankardfarning, manusheel : that means we can manipulate the time lag allowed?16:44
dipankardfarning, I tried putting a check on "ServerProxy()"16:44
dipankar...16:45
dipankartry:16:45
dipankar    server = ServerProxy(url)16:45
dipankar    except HTTPError:16:45
dipankar    RegisterError(_('Cannot set Proxy'))16:45
dipankar...16:45
manusheeldipankar: We should be doing that at the ServerProxy() function.16:45
dipankarmanusheel, dfarning : The above code didn't work16:45
dipankardfarning, manusheel : please try opening http://schoolserver:8080/ in web browser16:46
manusheeldipankar: Schoolserver is not a machine. It will not open.16:48
dipankarmanusheel, ohk. that what schoolserver is? and why we are setting poxy server there?16:48
dfarningdipankar, ok understand the problem. I'll get back in a while.16:48
dipankarmanusheel, sir, the only thing I couldn't understand so far is why set proxy ?16:49
dipankar:(16:49
manusheeldipankar: Right. Proxy is a method to access the network. Did you discuss this with alsroot?16:50
dfarningdipankar, see http://docs.python.org/library/xmlrpclib.html16:51
dipankarmanusheel, complete went over the understanding :(16:52
manusheeldipankar: Ok, let us start the bottom up approach that we do whenever we are stuck.16:54
dipankarmanusheel, sir, got it now16:54
manusheeldipankar: dfarning has provided an important pointer, which you looked at it earlier too. Can you open up http://docs.python.org/library/xmlrpclib.html ?16:54
dipankarmanusheel, sir, if we try normal way (HTTP way), we will have trouble in registering, logging, etc to a jabber server16:55
dipankarmanusheel, sir, once we setup the proxy then can easily (and safely) send the required data for register and login to any jabber server16:56
dipankarmanusheel, sir, the data that is sent back is also in a structured manner16:57
kandarpkmanusheel sir: hello16:57
dipankarso less clumsy in interpreting it16:57
manusheeldipankar: neat.16:58
dipankarmanusheel, thank you sir.16:58
manusheeldipankar: This is how we should be thinking about it. Glad you solved the issue at your end.16:58
manusheelkandarpk: Hi Kandarp.16:58
* dipankar is off for dinner. Be right back16:59
dfarningmanusheel, see17:00
dfarningimport xmlrpclib17:00
dfarningimport httplib17:00
dfarningimport socket17:00
dfarningclass TimeoutHTTP(httplib.HTTP):17:00
dfarning   def __init__(self, host='', port=None, strict=None,17:00
dfarning                timeout=socket._GLOBAL_DEFAULT_TIMEOUT):17:00
dfarning        if port == 0:17:00
dfarning            port = None17:00
dfarning        self._setup(self._connection_class(host, port, strict, timeout))17:01
dfarningclass TimeoutTransport(xmlrpclib.Transport):17:01
dfarning    def __init__(self, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, *args, **kwargs):17:01
dfarning        xmlrpclib.Transport.__init__(self, *args, **kwargs)17:01
dfarning        self.timeout = timeout17:01
dfarning    def make_connection(self, host):17:01
dfarning        host, extra_headers, x509 = self.get_host_info(host)17:01
dfarning        conn = TimeoutHTTP(host, timeout=self.timeout)17:01
dfarning        return conn17:01
dfarningclass TimeoutServerProxy(xmlrpclib.ServerProxy):17:01
dfarning    def __init__(self, uri, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,17:01
dfarning                 *args, **kwargs):17:01
dfarning        kwargs['transport'] = TimeoutTransport(timeout=timeout,17:01
dfarning                                    use_datetime=kwargs.get('use_datetime', 0))17:01
dfarning        xmlrpclib.ServerProxy.__init__(self, uri, *args, **kwargs)17:01
dfarningthis will create a object called a TimeoutServerProxy with allows the user to set a timeout to a proxyserver conection.17:02
manusheeldfarning: Yes. This is where the condition has to be set.17:03
manusheeldfarning: We can have a member function, which is called by the object TimeoutServerProxy.17:04
manusheelThis will allow the user to set up a timeout for the proxyserver connection.17:05
neerajdfarning: bug 624592, I have attached the patch.17:06
ubot2Launchpad bug 624592 in ubuntu-sugar-remix-meta (Ubuntu) "request all packaged activities be installed by default on USR (affects: 1) (heat: 6)" [Critical,Confirmed] https://launchpad.net/bugs/62459217:06
dfarningmanusheel, immediately before the async rpc function call to draw a message on the screen that registeration is in progress.  call gtk redraw to ensure the screen is rewrawn.  call TimeoutServerProxy17:08
dfarningneeraj, looks good.17:08
manusheeldfarning: Yes, thanks for the workflow. Yes, gtk redraw should be called to ensure screen is redrawn immediately after the registration is in progress.17:12
manusheeldfarning: This is the lag where Dipankar was getting stuck up. I think it should work out now.17:13
manusheeldfarning: Thanks for the pointer.17:13
dfarningmanu the redraw needs to be done just before the call to .registration .  Once that rpc call is made, the client loses control until the server responds or the function times out.17:40
dipankardfarning, around?18:04
dfarningdipankar, yes18:04
dfarningdipankar,  did the above make sense?18:04
dipankardfarning, I was offline.18:05
dipankardfarning, if I missed anything, could you please copy paste it? please.18:05
dfarning<dfarning> manusheel, see18:05
dfarning import xmlrpclib18:05
dfarning import httplib18:05
dfarning import socket18:05
dfarning class TimeoutHTTP(httplib.HTTP):18:05
dfarning    def __init__(self, host='', port=None, strict=None,18:05
dfarning                 timeout=socket._GLOBAL_DEFAULT_TIMEOUT):18:05
dfarning         if port == 0:18:05
dfarning             port = None18:06
dfarning         self._setup(self._connection_class(host, port, strict, timeout))18:06
dfarning class TimeoutTransport(xmlrpclib.Transport):18:06
=== bernie_afk is now known as bernie
dfarning     def __init__(self, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, *args, **kwargs):18:06
dfarning         xmlrpclib.Transport.__init__(self, *args, **kwargs)18:06
dfarning         self.timeout = timeout18:06
dfarning     def make_connection(self, host):18:06
dfarning         host, extra_headers, x509 = self.get_host_info(host)18:06
dfarning         conn = TimeoutHTTP(host, timeout=self.timeout)18:06
dfarning         return conn18:06
dfarning class TimeoutServerProxy(xmlrpclib.ServerProxy):18:06
dfarning     def __init__(self, uri, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,18:06
dfarning                  *args, **kwargs):18:06
dfarning         kwargs['transport'] = TimeoutTransport(timeout=timeout,18:06
dfarning                                     use_datetime=kwargs.get('use_datetime', 0))18:06
dfarning         xmlrpclib.ServerProxy.__init__(self, uri, *args, **kwargs)18:06
dfarning this will create a object called a TimeoutServerProxy with allows the user to set a timeout to a proxyserver conection.18:06
dfarning<manusheel> dfarning: Yes. This is where the condition has to be set.18:06
dfarning dfarning: We can have a member function, which is called by the object TimeoutServerProxy.18:06
dfarning<manusheel> This will allow the user to set up a timeout for the proxyserver connection.18:06
dfarning<neeraj> dfarning: bug 624592, I have attached the patch.18:06
ubot2Launchpad bug 624592 in ubuntu-sugar-remix-meta (Ubuntu) "request all packaged activities be installed by default on USR (affects: 1) (heat: 10)" [Critical,Confirmed] https://launchpad.net/bugs/62459218:06
dfarning<ubot2> Launchpad bug 624592 in ubuntu-sugar-remix-meta (Ubuntu) "request all packaged activities be installed by default on USR (affects: 1) (heat: 6)" [Critical,Confirmed] https://launchpad.net/bugs/62459218:06
dfarning<dfarning> manusheel, immediately before the async rpc function call to draw a message on the screen that registeration is in progress.  call gtk redraw to ensure the screen is rewrawn.  call TimeoutServerProxy18:06
dfarning neeraj, looks good.18:06
dfarning<manusheel> dfarning: Yes, thanks for the workflow. Yes, gtk redraw should be called to ensure screen is redrawn immediately after the registration is in progress.18:06
ubot2dfarning: Bug 624592 on http://launchpad.net/bugs/624592 is private18:06
dfarning dfarning: This is the lag where Dipankar was getting stuck up. I think it should work out now.18:06
ubot2Launchpad bug 624592 in ubuntu-sugar-remix-meta (Ubuntu) "request all packaged activities be installed by default on USR (affects: 1) (heat: 10)" [Critical,Confirmed]18:07
dfarning dfarning: Thanks for the pointer.18:07
dfarning<dfarning> manu the redraw needs to be done just before the call to .registration .  Once that rpc call is made, the client loses control until the server responds or the function times out.18:07
* dipankar is going through above18:07
dipankardfarning, ok got it. but where is the source file? :)18:10
ishandipankar: did you looked at that sir18:10
dfarningdipankar, you are hitting a cascade of failures.18:10
dfarninggoogle serverproxy timeout  -- or something like that.  this is a pretty common issue.18:11
dipankardfarning, ohk. just a minute18:12
dfarningdipankar, the async rpc function call is one problem.  The other is that there is garbage on the screen when that call is made.18:13
dipankardfarning, yes. That I figured out: two problems18:14
dipankar1. Time out18:14
dipankar2. gtk redraw (to remove the gray rectangle that is left out after clicking)18:14
ishan_lfaraone, hi18:19
dfarningdipankar,  normally gtk widgets such as the window are redrawn in the background  as part of gtk_widget_queue (Or something similar) I think there is a comannd to redraw the queue in the main thread so that the screen is in a know good state prior to making the function call.18:20
ishan_lfaraone, wanted to discuss about moon package18:21
dipankardfarning, ok18:23
dfarningdipankar, I think the following will trigger a redraw18:27
dfarning    event = gtk.gdk.Event(gtk.gdk.EXPOSE)18:27
dfarning    emit("expose-event", event)18:27
dipankardfarning, ok. Now I am totally confused. :(18:28
dipankardfarning, For the time out part: the code you provided in copy-paste, do I need to add it somewhere?18:28
dipankaror is it already implemented in python library?18:29
dipankardfarning, ohk, now I seem to get it: http://stackoverflow.com/questions/372365/set-timeout-for-xmlrpclib-serverproxy18:34
dipankarthe last solution to the problem, right?18:34
dipankardfarning, that means I need to somehow implement what the solution is?18:34
dfarningdipankar, I would suggest adding the snippet above  (or something based on it) to schoolserver.py18:35
dipankardfarning, won't that look odd?18:35
dfarningdipankar, why?18:36
dipankardfarning, I mean, can I add new functions in the source files?18:36
dipankarof Sugar?18:36
dfarningdipankar, that is how to develop sugar.  by modifying the code.18:38
dipankardfarning, all right then. just let me try a few changes in the code18:39
dfarningdipankar, +1 do your work in a git branch on a recently updated jhbuild.  Then you can easily make a patch for others to review.18:40
dipankardfarning, ok, I was just carrying out tests on the code separately right now for checking purposes18:42
dfarningdipankar, that is why git is so cool.... if you make a mistake you can just reset.18:42
dipankardfarning, since I am new to networking, how do I use the above classes? I mean, we are trying to replace the code - server = ServerProxy(url) right?18:44
dipankar* replace the code with a timeout controlled code?18:44
dfarningdipankar, in the code you will want to replace line 99 with server = TimeoutServerProxy(url)18:45
dfarningdipankar, then add the code for the TimeoutServerProxy to the file somewhere18:47
dipankardfarning, yup.18:47
dfarningdipankar, all you are doing is creating a subclass of serverProxy called TimeoutServerProxy which add the ability to define a timeout factor.18:50
dipankardfarning, sorry for my ignorance again: git repo of jhbuild. the one here right? http://wiki.sugarlabs.org/go/Development_Team/Jhbuild#Check_out_sugar-jhbuild18:52
dfarningdipankar, you were very close where you said that you thought that we needed to modify the library layer.... that is exactly what we are doing... By using inheritance we can tweak the underlaying libaries to meet our needs.18:53
dfarningdipankar, yes http://wiki.sugarlabs.org/go/Development_Team/Jhbuild#Check_out_sugar-jhbuild18:53
dipankardfarning, glad I could think to that level. (If only i knew networking a bit :( )18:54
dipankardfarning, I think I am getting the picture a bit clear.18:54
dipankardfarning, rather than modifying the already existing library function, we are tweaking it a bit to suit our needs?18:55
dfarningdipankar, i guess technically we are adding a wrapper....  we want to do something to Proxyserver that the original authors did not include.... so we derive TimeoutProxyServer from ProxyServer.19:03
dipankardfarning, yeah. I am through updating the jhbuild. Now changing the source19:03
manusheeldipankar: Hi Dipankar.19:07
manusheelPlease check the logs.19:07
manusheeldipankar: dfarning provided some pointers on solving the bug.19:07
dipankarmanusheel, sir, working on them, had the discussion what is to be done with dfarning :)19:08
manusheeldipankar: Ok. Did you get a hold on the situation?19:10
dipankarmanusheel, yes sir. Now I am trying to implement the code19:10
dipankar* its a bit tough to track19:11
manusheeldipankar: Ok, great.19:12
dfarningdipankar, manusheel I am going to lunch.19:17
dipankardfarning, enjoy your lunch :)19:18
dipankarmanusheel, I have implemented the change : http://paste.ubuntu.com/487377/19:21
dipankarline 8119:21
dipankarmanusheel, please review it.19:21
dipankarI want to complete it before I go ot sleep19:22
manusheeldipankar: Sure, Dipankar.19:24
manusheelReviewing it.19:24
dfarningdipankar, It looks sane.  Have you tested it?19:26
dipankardfarning, just running it now19:27
dfarningdipankar, if it works. we can go over how to submit it for review tomorrow.19:29
dipankardfarning, manusheel : it crashed.19:29
dipankarhttp://paste.ubuntu.com/487381/19:29
dipankarsugar is not starting19:29
dipankarin jhbuild19:29
dfarningdipankar, the good news it that you patch did not cause the crash.19:30
manusheeldipankar: Yes, I got why it crashed.19:30
dipankarhttp://paste.ubuntu.com/487383/19:30
dipankardfarning, I think it19:31
dipankarthe report was clipped off in previous one :(19:31
dipankarsorry19:31
manusheeldipankar: Right.19:31
dipankarmanusheel, dfarning : I think I got the problem19:32
dfarningdipankar, it is how the imports are handled19:32
dipankardfarning, yup19:32
dfarningthe code you added needs import xmlrpclib19:32
dipankarthe xmlrpclib was not imported a whole19:32
dipankar: sugar started19:35
dipankardfarning, manusheel : the strange thing is, there is no option for register in jhbuild19:37
dipankar!!19:37
dfarningdipankar, if you are already registed it will not show up again.19:38
dfarningI think you need to delete ~/.sugar19:38
dipankarok19:39
dipankardfarning, now register is showing up19:40
dipankardfarning, but there is no response even after I click on it. I mean, there is no freezing.19:41
dfarningdipankar, you will need to simulate a error condition.19:43
dipankarohk19:43
manusheeldipankar: Right, Dipankar. You'll need to simulate an error/exception condition.19:43
dfarningdipankar, what happens if you set the jabber server to www.google.com in the control panel?19:44
dipankardfarning, it freezes19:45
dipankardfarning, no, wait. It freezes for a while and then nothing happens19:46
dipankareverything is back to normal, the way it was19:46
dfarningdipankar, you are getting close.  did you set a timeout length in the code?19:47
dfarningdipankar, try setting that to 5 seconds19:47
dipankardfarning, its WORKING!!19:50
dipankardfarning, I can vary the freeze time!!19:51
dfarningdipankar, nice.  tomorrow let's turn it into a patch and submit it. then we an worry about the screen redraw and message later.19:52
dipankardfarning, ohk, but what about the message to be displayed?19:53
dipankardfarning, I think we should display a message19:53
dfarningdipankar, we can do that as a seperate patch.19:53
dipankardfarning, sure19:54
dipankar:)19:54
dipankarmanusheel, sir, around?19:54
manusheeldipankar: Good. Glad we arrived at a good conclusion on this issue. We'll take this up in the meeting tomorrow too.19:54
manusheeldipankar: Yes, I am around.19:54
dipankarmanusheel, sure sir19:54
dfarningdipankar, it is easist for reviewers if a patch only does one specif thing.19:54
dipankarohk19:55
manusheeldfarning: +119:55
manusheeldfarning: Thank you for the pointers in helping us solve the bug. Very very helpful indeed.19:56

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