=== debonzi goes dinner === debonzi and say good bye === kiko [~kiko@200-206-134-238.async.com.br] has joined #launchpad [01:43] evening [02:45] night!! === stub [~zen@dialup-62.29.221.203.acc11-dryb-mel.comindico.com.au] has joined #launchpad [03:23] hello stub [03:24] Morning [05:43] stub, are we on for 11am UTC? [05:44] kiko: Sure [05:45] great. [05:45] though that's not so great because it means I can't sleep. :) [05:46] I can do later if you want [05:46] Now is awkward [05:47] Or tomorrow [05:48] no, 11am UTC is the time because cprov and debonzi are on for it too. my damage. === doko [doko@dsl-082-083-128-203.arcor-ip.net] has joined #launchpad === justdave [~dave@24.247.63.44.gha.mi.chartermi.net] has joined #launchpad === stub [~zen@dialup-62.29.221.203.acc11-dryb-mel.comindico.com.au] has joined #launchpad === stub [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad === elmo_dc [~james@83.216.141.215] has joined #launchpad === stubish [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad === stub [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad === stub_ [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad === stub [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad === carlos [~carlos@69.Red-80-33-181.pooles.rima-tde.net] has joined #launchpad [01:14] "morning" === cprov [~cprov@200.158.100.251] has joined #launchpad === stubish [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [01:41] stubish: morning, do we have a meet today ? === kiko [~kiko@200-206-134-238.async.com.br] has joined #launchpad [01:44] morning [01:45] hey cprov, stubish? [01:45] am I late enough? [01:47] kiko: [01:48] cprov, is stubish around? [01:50] kiko: nop, I arrived and stub gots timed out but stubish looks like idle . === debonzi [~debonzi@200.158.100.251] has joined #launchpad [02:01] argh. [02:02] kiko: yep, we all were late ! === stub [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [02:03] stub: morning === kiko nudges stub [02:03] Morning. [02:04] Just realized my IRC client wasn't running :-( [02:05] stub: nop, do you have time for a brief talk about malone portlet/console on Soyuz ? [02:05] ah. [02:05] Sure [02:06] okay, give me a minute. [02:07] stub: nice, we are thinking about how to have a set of minimal/needed information about Bugs from Malone in Soyuz [02:07] kiko: ok === stub reboots his new ADSL connection again... === stubish [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [02:21] okay. [02:22] stubish, cprov: I'm good to go. [02:22] so the idea is [02:22] we want to display part of malone data in soyuz. [02:22] part of the question is: what makes sense to display? [02:22] I think we could have: [02:22] - for distro and release general statistics [02:23] - for source packages (and bin packages?) more detailed bug counts [02:23] - for packages in particular it would be good to be able to link to malone queries easily [02:23] I'm not sure what sort of summarizing facilities malone has available we could use however [02:24] cprov, can you paste in some of the pages on rosetta.wh for stub to see part of what we want? [02:24] At the moment, you either have to interrogate the database or the SQLObject instances directly [02:25] kiko: yes [02:25] There are some existing reports that can be linked to (all bugs for a given sourcepackage). [02:26] stub: the first one is https://rosetta.warthogs.hbd.com/soyuz/distros/ubuntu [02:26] stubish, what about all _open bugs for a given package? [02:27] stub: distribituion bugs ( how to retrieve bugs for a distro ? ) [02:28] kiko: For that what you want is a simple select on the SourcepackageBugAssignment [02:29] stubish, is there any hope you or justdave could cook up some interfaces we could use instead of bitscrubbing ourselves? [02:29] cprov: Bugs are assigned to a sourcepackage, and possibly a binary package (or a product, but that doesn't affect you). I don't know how to get from distribution to sourcepackage [02:30] stubish, consider a distribution to be a "collection" of sourcepackagereleases. [02:30] stubish, also, it's important to note that there is a distinction -- sourcepackage and sourcepackagerelease -- where both are relevant. [02:31] Then sure, we could list all bugs for a distribution (although that is probably a bit silly - probably just want counts for a whole distribution?) [02:31] stubish: yes, counter should be nice [02:31] yes, we just want statistics for them, but maybe we want the top priority bugs for that distro? [02:32] so a distro manager can tell if people are focusing on the right thing. [02:32] re: Me or Dave writing the interfaces - sure, we just need to specify what you need (result of this meeting maybe). [02:33] wow, that would be awesome. [02:33] kiko: That is a good idea, and I think it was one of the original reports speced for Malone. Do you really want that in soyuz? [02:34] (top bugs sort of thing, although what that actually means is still a little vague) [02:34] stubish, a quick list of the top 10 priority bugs in a distro are interesting as part of the distro view, I would think. what do you think? [02:34] do you have priorities and severities in malone? [02:34] what about issue type? [02:35] stubish: please look into https://rosetta.warthogs.hbd.com/soyuz/distros/ubuntu/releases/warty [02:35] We have priorities and severities, but there are few values so if you are dealing with a distribution you won't get a very good report (if there are 50 critical severity bugs, it is tricky to list the top 10 :-) ) [02:36] maybe joining severity and priority may help there. [02:37] kiko: That might work. We will have some way of listing 'top bugs' though however that is calculated :-) [02:38] aha. [02:38] stubish: nice [02:38] stubish, did you get a chance to look at the links cprov posted? [02:39] cprov: So you need functions to return those three counts for a distribution? Or is that page still being worked on. [02:39] stubish: it's an idea :-) [02:40] stubish, don't worry, we will file bugs on what we need, as soon as we've agreed it's possible. [02:40] stubish: for sure we need better ones [02:40] cprov, (missing link on "Mark Shuttleworth" to the personal page?) [02:40] Ok. So I'll put together a small portlet to stick on the distribution page, clicking on which jumps to the relevant full report in malone (action point #1) [02:41] that's perfect === stubish checks if Malone actually still works on rosetta.hbd... [02:41] kiko: what is missed and where ? [02:42] cprov, the link from release owner to the owner's personal page. === cprov the rosetta.hdb DB is broken, again [02:42] fun. [02:43] cprov, give stubish a link to gwyd maybe? [02:43] kiko: please verify if gwyddion.gwyddion.com:8085 is working ? [02:44] worksforme [02:45] stubish: can you try that ? [02:45] gwyddion.com ? [02:46] http://gwyddion.gwyddion.com:8085/soyuz/distros/ubuntu === stubish can't resolve that [02:46] cprov: Gwyddion is a Welsh name, isn't it? [02:46] daf: yes :) [02:46] cprov: cool :) [02:47] cprov: why did you pick that? [02:47] Can you give me the IP address of gwyddion.gwyddion.com - it isn't resolving from here (new network connection - dunno) [02:47] stubish, 200.158.100.251 [02:48] daf: tks, from Celtic culture descritption ... [02:48] daf: I found some nice details that I like [02:49] ok... [02:50] no bugs on that page - is that the issue? [02:51] hah [02:54] One suggestion has been that if you clicked on the 'Malone' tab at the top, it would retain context and show you the bug report for the ubuntu distribution (which would avoid the need to put bug information on many pages, but is less intuitive) [02:54] stubish, I don't know if I like that too much -- it's too non-obvious, don't you feel? [02:56] I think so - it might be implemented in the future for advanced users if the context is similar enough between apps (which might not be the case - Malone knows nothing about SourcepackageRelease's for instance) [02:56] But we won't worry about it for a release or three. [02:58] okay [03:00] Ok... and another portlet on http://200.158.100.251:8085/soyuz/distros/ubuntu/src/warty/mozilla-firefox (The soyuz sourcepackage details page?) [03:02] And on http://200.158.100.251:8085/soyuz/distros/ubuntu/src/warty/mozilla-firefox/0.9.0-8 (The soyuz binarypackage details page?) [03:02] stubish: there we want to list sourcepackage bugs, maybe the high priority or severity ones [03:03] Yup. So that is three portlets identified. [03:03] stubish: there is also the person one [03:04] stubish: /soyuz/people/1 [03:05] Hmm... seems soyuz is ending up with pages I had assumed would be in some central location. This is going to affect the Malone use cases (such as they are...). Where does somebody go if they want to look at their bugs - Soyuz? Malone? or somewhere else? [03:06] stubish: it isn't clean enough to me, but I think the right place to see extended bug info is Malone [03:07] stubish: we just want to show something like compiled/brief info on Soyuz [03:08] stubish: as we might do with rosetta info [03:09] Ok - so the portlet on the people page is similar to the distro one - summaries that link to the full reports in Malone. [03:09] stubish: are we misunderstand some concept or use case [03:09] cprov: No - its more that I'm clarifying things in my own mind :-) [03:09] stubish: yes, via 'more bugs" link [03:10] stubish: yes, so do I [03:13] stubish: then I think we have 4 different portlets and we should work on their definition up to now: which info is wanted, how to encapsulated them and so [03:14] I think the way this should be implemented is that I create the views in lib/canonical/malone, and attach them to the relevant soyuz objects. The soyuz page template can then simply do a
to include the info. [03:14] The portlets should stay in Malone, as they will need to be kept in sync with Malone work. [03:14] stubish: looks great for me ! [03:14] The portlets only link to Malone, so even if the soyuz URL's are changed it won't affect them. [03:15] And it is only those four screens at the moment? Distribution, person, sourcepackage and binarypackage? [03:16] stubish: yes, I think so, at least til our Sprint (alpha maybe :) ) [03:17] I'd be grateful if someone adds them as four seperate bugs in Bugzilla (assign them to me, and they are Malone bugs -- not Soyuz) [03:17] we'll do that. [03:18] stubish: thank you very much for your help :) [03:18] I'll replace the portlets next week with ones that load from Malone. They probably will just contain dummy data or remain blank though, as there is other Malone work that will need to be done first. [03:18] kiko: should I report the bugs ? [03:19] stubish, you're the man. [03:19] stubish: no problem, since we have already defined the details, take your time. [03:20] cprov, let's privchat and see what needs to be done [03:20] This is good, as it means I don't have to worry too much about Malone search pages -- instead, people can navigate in Soyuz and jump across to Malone as required. [03:20] stubish, about soyuz centralizing things, I have two comments. [03:21] first that it's kind of normal, since soyuz is the "distribution" view of the world, and ubuntu/canonical/... is about distributions. [03:21] we're distribution-centric. [03:22] second is that, specifically regarding the *people* side of soyuz, I am somewhat uncomfortable with it living inside soyuz and would pledge to move stuff into a separate, shared application. [03:22] that could handle userdata, authentication and the user portal [03:23] however, I haven't seen any push towards this and we're not letting it stop soyuz :) [03:24] Malone had a registration screen at one stage -- I think a central area for stuff is required, and we need another [03:24] tab for it since it shouldn't live under 'Ubuntu' [03:24] "people" worksforme, but mark's the boss. [03:26] Anyway - I think that is enough for now (leave it before I get more work ;) ) [03:26] right. [03:26] Thanks for waiting for me - sorry about getting here late. [03:27] it was really convenient. [03:28] stubish, thank you for your help [03:29] You are here! :-) [03:29] debonzi the silent one [03:33] debonzi, :) [03:42] debonzi, I have a question. [03:42] http://gwyddion.gwyddion.com:8085/soyuz/distros/ubuntu/bin/warty/kiwi [03:42] Current: is empty -- what does that mean? we should have text there explaining if empty is a "normal" situation. [03:44] kiko: there is no bin for kiwi [03:44] cprov, okay, but then we should say "There are no binary package releases currently generated for this package"? [03:45] kiko: I agree :) [03:45] okay, I'll bug bonanza [03:45] kiko: yep :) [03:46] kiko, I will do that [03:59] daf: here? [04:00] here [04:00] ok [04:01] I've just submitted a merge with the real principal->person adapter [04:02] perfect [04:02] so, we are ready to publish the alpha as soon as the 1978 is close [04:02] nice [04:03] and we've imported the data [04:03] daf: well, that's a matter of server time [04:04] once you've star-merged my latest patch, can you test #1930? [04:04] sure [04:04] is the merge confirmed? [04:05] not yet [04:05] ok [04:06] I think #1969 is done [04:06] oh, no, wait [04:07] still the maintainer dashboard and the PO edit form are not restricted === stub [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [04:11] carlos: ok, merge success [04:11] daf: ok === carlos executes star-merge [04:14] hmm, we have no plural form information for Catalan [04:14] daf: I think it's the same on than Spanish, let me ask Jordi [04:16] s/same one than/same one as/ :) === carlos tries to remember all that :-D [04:17] than/from/as are confusing [04:17] greater than, different from, same as [04:17] ... [04:17] daf: well, my main problem is that last time I was learning english was about 9 years ago [04:18] I need to retake my English studies [04:18] nonsense, I think you have been learning English since about May :) === stub_ [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [04:18] X-) [04:18] I mean "study" it [04:18] I know :) [04:19] ok, so what's our plan for the rest of today? [04:20] hmm, I'm testing it, but my database seems to be broken :-? [04:20] it == your patch [04:20] daf: we have two options: [04:20] I had a problem with Epiphany [04:20] it was remembering form values [04:21] 1.- Try to debug and fix the 1978 you and me [04:21] I had to resort to Firefox [04:21] 2.- Start implementing the scripts we were talking about with Steve to import data [04:21] yeah, I guess those are our options :-/ [04:21] daf: I don't think it's the same problem I'm having, seems like I don't see the evolution sample data [04:22] daf: any way to talk with lalo? [04:22] oh, it's saying "No recently translated templates."? [04:22] yes [04:22] that's my problem [04:22] reloading the database [04:23] hmmm [04:23] perhaps it's because I'm not logged [04:24] and thus I don't have any language... [04:24] yes, that was the problem [04:25] you should have to be logged in to see it [04:25] daf: perfect, you patch works [04:25] I added a new translation to evolution [04:26] and it appears in my dashboard [04:26] woo, a bug to close! [04:26] daf: btw, we should show the resource list to anonymous people, and asking for a login if they click on translate it [04:27] I agree [04:27] I think that's what we're currently doing, isn't it? [04:27] daf: are you using labels for the dashboard thing? [04:27] no [04:27] daf: not really, anonymous don't have a language list so the list is empty [04:27] person.translatedTemplates() [04:28] oh, I see [04:28] yes, there's a bug open for that [04:28] daf: ok [04:28] so, next step? [04:29] if we cannot talk with lalo, I think we should work on fixing the bug, IMHO it should be closed today [04:30] closing bugs is a nice feeling :) [04:30] :-D [04:30] daf: you forgot to remove some debug prints about the translation form: [04:31] >>> msgid found (es, evolution addressbook) [04:31] >>> old_translations: [04:31] [u'libreta de direcciones de Evolution'] [04:31] >>> msgid found (es, current addressbook folder) [04:31] >>> old_translations: [04:31] [u'carpeta de libretas de direcciones actual'] [04:31] >>> msgid found (es, have ) [04:31] >>> old_translations: [04:31] [u'tiene'] [04:31] yeah, they need to go :) [04:31] and you forgot a space in u'tiene ' :) [04:32] no, I don't [04:32] that string comes from the sample data [04:33] :-D [04:33] oh, right, that's the old one :) [04:33] hmm [04:34] now that you said that.. [04:34] is there any way (with javascript) so we show the user the same "icons" for the return char and the spaces inside the edit input? [04:34] no idea [04:35] also, we should get rid of the information shown when the form is submitted [04:35] that way the UI will be improved .. [04:35] yes [04:35] we should ask limi post-alpha === stub [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [04:37] carlos: we still have .encode('utf-8') in sql.py [04:37] several times [04:38] we can nuke them [04:38] or we should :-P [04:38] we should [04:39] ok. I'm going to do a review of all import code [04:39] looking for the bug [04:39] ok [04:39] could you take care of the encode calls? [04:39] a test case would be good :( [04:39] ok [04:39] for 1978, I mean [04:40] I will review then the current test case [04:40] because they should detect the bug [04:40] and they are not doing it [04:40] so we have a bug with our bug detector :-P [04:41] do you think it would be reasonable to add "assert isinstance(foo, unicode)" to sql.py in places where it's calling ".encode('utf-8')"? [04:41] in order to make sure nothing is passing strings in [04:42] hmm, don't know [04:42] daf: Sounds good to me. [04:43] daf: with your changes to the auth code, could you close any of the Steve's bugs? [04:43] stub: groovy [04:44] carlos: perhaps, I'll check [04:44] ok [04:44] hmm [04:45] well, I think #1908 is probably closable [04:45] but strictly speaking, the bug is that Steve should check it [04:45] so I won't close it [04:45] daf: then punt it to post-alpha [04:45] similarly for #1907 [04:46] I'll wait to see if Steve turns up today, I think [04:46] but I will punt if we're waiting on them alone [04:47] ok [04:49] that means we only have #1907, #1908 and #1978 [04:49] right [04:49] 3 open bugs in the list, 3 open bugs [04:50] merge a patch, mark it fixed [04:50] 2 open bugs in the list [04:50] o/~ [04:50] :-) === spiv [~andrew@82-69-60-252.dsl.in-addr.zen.co.uk] has joined #launchpad [05:06] daf: the functional tests fails checking the sql interface about efforts (I think it fails because the DB is empty...) [05:06] I think you're right [05:07] any way to fix it until we start using it? === carlos thinks on remove those classes from the ftests [05:08] you can remove them temporarily [05:08] or comment them out [05:08] ok [05:08] that would be better [05:09] ok, done [05:09] now I get an error with the poimport test [05:10] Traceback (most recent call last): [05:10] File "/home/carlos/Work/dists/launchpad/lib/canonical/rosetta/ftests/test_poimport.py", line 28, in setUp [05:10] canonical.lp.initZopeless() [05:10] NameError: global name 'canonical' is not defined [05:10] should I export the PYTHONPATH for the unittest? [05:10] At a guess, "import canonical.lp "? [05:11] hmm, it should be doing that [05:11] spiv: bingo [05:11] hey spiv [05:11] spiv: perhaps the test generator is buggy, then [05:11] kiko: Hey, how's it going? [05:11] s/spiv/carlos/ [05:11] daf: no, that's from a manual test (the test_poimport.py) it's not about the interface test [05:12] oh, right [05:13] spiv, quite well. had a *great* talk with stub this morning, he rocks. === carlos is happy to know that the functional tests are not executed with every pqm merge === debonzi lunch [05:19] kiko: Great :) [05:19] kiko: My email is down, but you (or someone) will be sending a summary to the list? Or perhaps you have already? === spiv hates it when email is broken [05:20] carlos: did you get a reply from jblack about the PQM wedginess? === stubish [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [05:20] spiv: again? :( [05:20] daf: Yeah. [05:21] daf: no [05:21] daf: he said that will ask lifeless [05:21] carlos: right [05:24] well, it's not an urgent problem right now === carlos fixed the functional tests so they pass now [05:27] now [05:27] I should "break" them again [05:27] so they detect the bug [05:27] 1978 [05:27] spiv, I can get you pasteback. [05:29] carlos, is justdave currently the only bugzilla admin we have? [05:30] kiko: hmm, I'm not completely sure [05:30] but I think so [05:30] thanks. [05:32] kiko: Thanks! [05:32] spiver! [05:33] spiv, cprov and I got together today too and we think we're mature enough now to start using bugs to track work [05:33] spiv, how do you feel about that? [05:33] we're finding it hard to keep track with wiki lists at this point [05:33] Sounds good to me. [05:33] (they grow long) [05:33] I've just started doing that myself, and it's working well for me so far. [05:33] spiv, so I'm going to kill 30 minutes today moving stuff from the wiki into bugzilla, as soon as justdave clears my privs. [05:34] Go for it. [05:36] kiko: come and join us in bug-oriented task management land :) [05:38] daf, remember, I'm a Bugzilla maintainer :) [05:38] I didn't know that! [05:38] https://bugzilla.warthogs.hbd.com/bugzilla/chart.cgi?category=-All-&subcategory=-All-&name=181&select0=1&label0=open+Rosetta+bugs&line0=184&datefrom=&dateto=&action-wrap=Chart+This+List [05:41] erhm [05:41] oh. [05:41] I am being very very silly. [05:42] what have you done now? :) [05:42] requested privs on bugzilla.no-name-yet.com. [05:43] silly kiko [05:43] maybe I should take a one-week holiday. [05:43] daf: sorry, one more bug for the alpha (but could be punted) [05:43] carlos: no worries [05:43] london sounds like a nice destination [05:43] kiko: :-P [05:43] kiko: spain is hotter [05:43] kiko: yes, it's er, nice at this time of year [05:44] just make sure nobody insists on me working for that week [05:45] carlos: do you think you can fix it? [05:45] carlos: or would you like me to try? [05:47] daf: it's too easy [05:47] :D [05:47] we need to append a white space [05:47] when exporting translators comments [05:47] that's all [05:47] well, prepend [05:47] does it work with multi-line comments? [05:48] i.e. the space could affect wrapping [05:48] no idea [05:48] we are talking about comments from a .po file [05:48] Gah, I don't have email... which makes merge requests annoying. [05:48] so if they where right inside the .po file [05:48] they should be also correct with our exported .po file [05:48] spiv: would you like me to make a request on your behalf? [05:49] daf: Well, I can do it, it just takes a bit of mucking around :) [05:49] spiv: ok [05:49] This merge isn't urgent, so I'll do some more work then worry about it. [05:51] guys [05:51] have you been seeing weird PQM commit messages for merges? it's including now changes made by others.. is that correct? [05:51] kiko: know bug [05:51] that changed around this week, AFAIK [05:51] I'm the master [05:51] and I affect all your commits [05:51] I'm the king!!!! [05:51] :-D [05:52] carlos, I always knew you were the master! [05:52] Not recently, but then I haven't gotten any email today... [05:52] kiko: I reported it already to arch team [05:52] kiko: it's the second time it happens [05:52] that's freaking me out [05:52] I thought that symptom was a result of the "crossing the streams" issue? [05:52] so they should know how to fix it [05:52] spiv: it's possible, I had my archive broken yesterday [05:53] carlos: Oh well, I presume the arch team will sort it out :) [05:54] in arch we trust? [05:55] kiko: it's our god and we should trust always it [05:55] kiko: Basically, yes :) [05:55] :-D === kiko mutters something incomprehensible under his breath and goes back to bugzilla [05:56] :) [05:56] kiko: if you are bored... you could help us with the #1978 O:-) [05:56] BORED?! === carlos hides [05:57] I need some Xanax. Cheap Prescription Drugs keep you awake all night long. [05:57] carlos: you don't need to hide -- you are the king! [05:57] daf: true!!!! [05:58] :-D [05:58] kiko: sugar, you only need sugar :-) [05:58] kiko: yeah, if you can't get sleep, try substituting food [05:58] kiko: I was able to be awake 36 hours only with that :-D [06:00] spiv, bug 1956 is solved, even without the sample data (debonzi added it manually). [06:00] spiv, are you happy if I break the dependency, add a note to 1956, and reassign and resolve it? === spiv looks [06:04] kiko: Well, part of the point of that bug is to import not just real data, but a realistic quantity of it. [06:04] So I guess as a start I should update the bug to make that fact obvious ;) [06:04] I'm sorry. [06:04] But you're right that it no longer blocks 1955. [06:04] I'm talking about 1955. [06:04] right [06:04] so the answer is yes? [06:04] Ok :) [06:04] Yes [06:05] cool. === kiko kicks rosetta.warthogs [06:07] kiko: hey!! [06:08] kiko: it's no longer automatically updating [06:08] kiko: mea culpa [06:08] and it's also currently broken. nice. :) [06:09] kiko: works for me [06:10] https://rosetta.warthogs.hbd.com/soyuz/distros [06:11] oh [06:11] that's Soyuz broken, then :) [06:12] fix0red === daf puts his magix fix0rating wand away === carlos goes to take a shower and to get dressed [06:12] see you later [06:13] carlos: that's the best thing about this job [06:13] naked coding? [06:13] kiko: YES! [06:13] daf: well, I have the same thing since wednesday night... [06:13] kiko: X-) [06:13] carlos, WE ARE NOT INTERESTED IN THE DETAILS [06:14] kiko: :-P [06:15] perfect and my server is down now [06:15] ggrrrr [06:17] dude, the canonical bugzilla is really hidden [06:25] kiko: err try to do all the work by yourself ? === spiv blinks [06:26] eh? [06:26] I just looked at this window, and the first two things I saw were about a "magix fix0rating wand" and "naked coding". [06:26] you missed Xanax and Cheap Prescription Drugs? [06:27] spiv: hi, guy, how is it going with soyuz ? any news ? [06:27] Thankfully, yes. [06:27] cprov: Well my email is down :( [06:27] cprov, that's like saying how is it going with life? :) [06:27] So if there's any news, I haven't heard it ;) === cprov phone [06:28] spiv: so much to do, so little sleep... [06:29] Yeah === cprov back again [06:33] spiv: I'm just implementing People with no differences between Person and Team, quite simple and easy. [06:34] though I am unhappy with that :-/ [06:36] kiko: why ? look in DB there is no Team, I mean Team is a Person anyway :-| [06:37] yeah. [06:37] I think the pages should be different, but.. [06:37] (avoiding ifs) [06:38] kiko: yeah, the page will have just few differences in "private info" just it [06:39] kiko: you still can assign a bug to a Team [06:39] i guess. [06:39] kiko: or have a Team email [06:39] yeah, teams need email. [06:39] kiko: or have a Team as maintainer for a pkg [06:40] kiko: so, everything you can do to a person :) [06:40] heh === debonzi University Test :( [06:45] debonzi: ? [06:48] kiko: please, just have a look on gwyddion.gwyddion.com/soyuz/people [06:48] kiko: hurry up, I have a test in 10 min :) [06:49] daf, yep [06:49] both of you have an exam? [06:49] daf, yep.. the same [06:50] good luck! [06:50] daf, Thanks.. Ill need :) [06:50] what's the test on? [06:50] Eletromagnetism (ARRRGGHHH) :) [06:50] kiko: ping [06:50] urg :-/ === daf back shortly [06:53] pong [06:53] eeeeeleectriiicittyyyyyy [06:54] kiko: the link, quick look, 2 min [06:54] looking [06:54] kiko: search or see the entire list [06:55] yes, I've noticed [06:55] kiko: we have person and teams on same level :) [06:55] kiko: do you think it works for us ? [06:56] Iam confused only by one thing: Email: Mark Shuttleworth? [06:56] kiko: +edit and real roles soon [06:56] kiko: owner ... try again :) [06:56] and the case-sensitivity problem? [06:57] hmm [06:57] is that team lead or something? [06:57] kiko: yes soon too :) [06:57] kiko: teamowner to be precise ! [06:59] kiko: time is over ... see you in one hour [06:59] do it! === kiko is now known as kiko-fud === carlos is back with new energy [07:50] daf: ping [07:51] nothing, sorry [07:53] silly carlos :) [07:53] :-P [08:16] spiv: any idea how I would go about setting up a dummy adapter for use in a unit test? [08:17] You probably want to use the PlacelessSetup mixin. [08:18] (e.g. lib/canonical/lp/placelessauth/tests/test_authutility.py does this) [08:18] That file also has an example of registering an adapter: "ztapi.provideAdapter(IHTTPCredentials, ILoginPassword, BasicAuthAdapter)" [08:19] stonking! [08:19] looks just like what I need, thanks [08:19] Basically, model your unit test after TestPlacelessAuth in that file :) [08:19] right [08:19] I already have a test [08:19] but it broke after a code change I just made [08:20] From #ubuntu... how would I send in a translation of the Computer menu? many entries there are not translated to swedish [08:20] I wish I could say "go to Rosetta" :) [08:20] It'll be good when rosetta is done :) === kiko-fud is now known as kiko [08:29] daf: could you look at #1985 ? [08:31] carlos: what's the problem? [08:32] daf: reread it, please, I added a comment [08:32] we could punt it post alpha, but I don't agree [08:33] ok, I see your comment now [08:33] I mean that I don't agree on the current behaviour [08:33] I did changed it to post alpha [08:42] carlos: I've commented [08:42] reading === carlos thinks if we should add a flag to a pomsgset to mark it as a pluralform [08:54] well, to all pomsgsets :-P [09:42] cprov, I'll need to get to the bugs tonight, I have other problems to handle. [09:56] kiko: ok === carlos hates debug!!!! [10:44] daf: I think I found the problem [10:47] yeah? [10:47] daf: yes [10:47] all msgids are inserted as plural forms [10:48] seems like "" is taken as a valid string [10:48] instead as a "we don't have a message here" [10:49] I'm tracing the code until I get the exact point where the checks fails [10:53] hmm [10:54] daf: could you look at pofile_adapters.py? [10:54] line #293 [10:54] I see it [10:55] daf: is that correct? === carlos is lost [10:56] it always fills the plural form?? [10:56] raise POInvalidInputError('PO template has msgstrs', 0) [10:56] that is my line #293 [10:57] -> proxy.msgidPlural = kw.get('msgidPlural', '') [10:57] > /home/carlos/Work/dists/launchpad/lib/canonical/rosetta/pofile_adapters.py(173)_set_msgidPlural() [10:57] -> if old_plural is not None: [10:57] (Pdb) n [10:57] > /home/carlos/Work/dists/launchpad/lib/canonical/rosetta/pofile_adapters.py(176)_set_msgidPlural() [10:57] -> self._msgset.makeMessageIDSighting(value, 1, update=True) [10:57] try: [10:57] proxy.msgidPlural = kw.get('msgidPlural', '') [10:57] if kw.get('msgstr'): [10:57] raise POInvalidInputError('PO template has msgstrs', 0) [10:57] proxy.commentText = kw.get('commentText', '') [10:57] proxy.sourceComment = kw.get('sourceComment', '') [10:57] proxy.fileReferences = kw.get('fileReferences', '').strip() [10:57] proxy.flags = kw.get('flags', ()) [10:57] plurals = [] [10:58] for inp_plural in kw.get('msgstrPlurals', ()): [10:58] if inp_plural: [10:58] raise POInvalidInputError('PO template has msgstrs', 0) [10:58] plurals.append(inp_plural) [10:58] proxy.msgstrPlurals = plurals [10:58] proxy.obsolete = kw.get('obsolete', False) [10:58] proxy.flush() [10:58] mine is the try: [10:59] What I don't understand is if there is a kw.get... why the trace executes the set_msgidPlural === carlos does not understand all this code, so perhaps he's missing something [11:00] hmmmm [11:00] the error is at this point, I'm sure, because is where the "" string is created into the database and it does not comes from the .pot [11:01] I think this code needs more comments [11:02] daf: agree [11:14] yes, that's exactly the problem [11:14] the plural form is always inserted althought it's '' [11:15] why is the parameter there at all? [11:15] no idea [11:15] but [11:15] proxy.msgidPlural = kw.get('msgidPlural', '') [11:15] is what is fucking all [11:16] ouch [11:16] the proxy.msgidPlural executes the set_msgidPlural [11:16] and then the plural form is inserted into the database [11:16] as '' [11:16] always === carlos preparing a comment to the bug report [11:17] daf: but I don't have a idea about how to fix it [11:17] because I don't understand that code [11:17] I think it should be something like [11:18] if kw.get('msgidPlural', '') != '': [11:18] proxy.msgidPlural = kw.get('msgidPlural') [11:18] makes sense [11:18] I will try it now [11:18] as soon as I finish with the bug comment === carlos restoring the db to test this fix [11:22] daf: I don't understand why kw.get('msgidPlural'...) returns '' if the msgidPlural field does not exists... [11:22] or I think it should not exists... [11:23] that's what .get does for dictionaries [11:23] perhaps this would be better: [11:23] if 'msgidPlural' in kw and kw['msgidPlural'] != '': [11:23] ... [11:24] daf: works!!! [11:24] but we still have a bug, the msgid is marked as non current [11:25] launchpad_test=# SELECT * from pomsgidsighting where pomsgset=24; [11:25] id | pomsgset | pomsgid | datefirstseen | datelastseen | inlastrevision | pluralform [11:25] ----+----------+---------+----------------------------+----------------------------+----------------+------------ [11:25] 28 | 24 | 98 | 2004-09-17 23:24:38.720409 | 2004-09-17 23:24:38.720409 | f | 0 [11:25] (1 row) [11:25] hmmmmm [11:25] It comes because at sql.py it's created with it set to false [11:25] we need to change it into true at any point [11:31] when you set one to true, you also need to set all the others to false [11:31] correct? [11:32] right [11:32] seems like current code [11:32] does that only with plural forms [11:33] but the singular string for that plural form is never updated [11:33] ok [11:34] I think I see a way to fix it [11:34] but we need lalo's review to be sure the changes will work [11:34] I mean, will not break anything else [11:37] daf: could you look at makeMessageIDSighting method from sql.py? [11:38] I think it has also a bug [11:38] it only marks as "inLastRevision" the plural form part [11:38] but not the main msgid [11:42] jesus, this is a madness [11:43] I'm looking at makeMessageIDSighting [11:44] if pluralForm == 0, doesn't messageID 0 get updated? [11:46] daf: yes, sorry about that. That function is correct [11:46] I misunderstood it [11:46] daf: so here is the situation [11:46] 1.- We insert a pomsgid with inLastRevision=False (by default is that value) [11:47] 2.- If there is any plural form, we insert it and then change its inLastRevision = True [11:47] I think we should add a call to makeMessageIDSighting for the pomsgid here: [11:48] try: [11:48] msgset = self.potemplate.messageSet(msgid) [11:48] except KeyError: [11:48] msgset = self.potemplate.createMessageSetFromText(msgid) [11:48] else: [11:48] try: [11:48] msgset.getMessageIDSighting(0, allowOld=True).dateLastSeen = "NOW" [11:48] except KeyError: [11:48] # If we don't have any MessageIDSighting, we shouldn't fail. [11:48] pass [11:48] where does step 1 happen? [11:48] after that code [11:48] the code I pasted [11:48] line #282 [11:49] pofile_adapters? [11:49] yes [11:49] it looks for that msgid, if it does not exists it's created [11:50] but I don't understand the else clause for that try [11:50] nrrg [11:51] you mean the except claue? [11:51] spiv: ping [11:51] the except KeyError is ok for me [11:51] but the else: [11:51] daf: you ..ahah brief help with sqlobject ? [11:51] I don't understand it [11:52] cprov: what's the problem? [11:52] carlos: oh, the outer try: [11:52] msgset will not have any value if we get a exception, right? [11:52] daf: TeamParticipation.selectBy(teamID=self.id) [11:52] daf: yes [11:53] daf: I want to join the person table too and select just results with teamoner not NULL [11:53] cprov: do you know the MultipleJoin option? [11:54] daf: ie. I want just the team not the persons [11:54] cprov: pong. [11:54] well, method :-P [11:54] daf: not used to it ! [11:54] spiv: help using MultipleJoin() [11:54] carlos: I'm having a hard time understanding the code also [11:54] daf: ok, I will fix it as I think it should work [11:55] and we will care about it later... [11:55] cprov: To do a join in a select, you need .select, not .selectBy, unfortunately. [11:56] cprov: TeamParticipation.select("team = %d AND Person.id = TeamParticipation.person AND Person.teamowner IS NULL") [11:56] spiv: I suspect, did you undestant my aim ? [11:56] Er, I meant IS NOT NULL :) [11:56] spiv: you are the man ! [11:56] (plus, you can't test for NULL/NOT NULL with selectBy either :( ) [11:57] carlos: I'd love to see more comments in this code [11:57] Oh, and you'd need to do '% self.id' after that string, of course :) [11:57] daf: me too, but lalo is not available now [11:57] carlos: right [11:57] carlos: we might be able to add some ourselves === cprov testing spiv magic [11:58] I think lalo's code is a bit cryptic sometimes [11:58] spiv: could they use the MultipleJoin method to do a Join against the same table? [11:58] carlos: That's an interesting thought. [11:59] spiv: just have a quick look on gwyddion.gwyddion.com:8085/soyuz/people, please :) [11:59] daf: I will check if I'm right and I will try to add the comments I'm sure are right :-) [12:00] spiv: what does it means? that it's possible or that you are not sure? :-P