[12:22] mpt: we definitely need a "highlighted box in the middle of the page" [12:22] could use portlet-style colours [12:24] sabdfl: launchpad _will_ be open-source in the future, right? gajim upstream bugs me about it :-/. [12:24] Nafallo: yes, in time [12:24] we've released bits of it already [12:25] small bits - libraries, and the calendar code [12:25] :-) [12:25] sabdfl: .highlighted {background-color: #f7f9fa; border: 1px solid #8cacbb; padding: 0.5em;} [12:25] sabdfl: thanx :-) he found this blog entry: http://azure.humbug.org.au/~aj/blog/2005/09/04#2005-09-04-launchpad-freeness [12:26] so I thought it was best to ask ;-) [12:26] mpt: can i commit that? [12:27] to launchpad.css? [12:27] sure [12:28] mpt: i'll go with dotted [12:29] sabdfl, does launchpad have an easy way people can request apps to be packaged for a particular distro? [12:29] not dashed? === mpt throttles kiko [12:29] Burgundavia: no, that's a great feature [12:30] Burgundavia: if you do up a spec in wiki.launchpad.canonical.com we could discuss it at UBZ [12:30] sabdfl, sure, will do after I push out the quicktour (which can now be seen here --> http://doc.ubuntu.com/gnome/quicktour/quicktour.html ) === Nafallo goes to look [12:31] that version is old, but only a few minor cosmetic things have changed [12:31] Burgundavia: you're not going to add screenshots first? ;-) [12:32] Burgundavia: ah, :-) [12:32] Burgundavia: like screenshots? ;-) [12:32] Nafallo, no, I am going to ship it like that, so that users can simply imagine the great features [12:32] Burgundavia: lol :-) [12:33] Burgundavia: that's what I thought then ;-) [12:33] Nafallo, I have to wait for art-freeze on the 29th to start doing screenshots [12:33] ah === Nafallo was right :-P [12:33] Nafallo, do use gaim? [12:33] Burgundavia: gajim :-) [12:33] grr [12:34] I need a gaim user that connects to multiple different networks (aim, icq, etc.) [12:34] to bad I've converted my girlfriend then ;-) [12:35] Burgundavia: looks awesome. why not borrow some of the ubuntu css? [12:36] sabdfl, the top bar? I have considered it, not yet tried it out === carlos -> bed [12:45] SteveA: do our cronscripts run as a user? can they? [12:45] i have to touch an object, and it's giving me : [12:45] File "/home/mark/projects/ubuntu/launchpad/lib/canonical/launchpad/subscribers/cve.py", line 8, in cve_modified [12:45] cve.datemodified = UTC_NOW [12:45] zope.security.interfaces.ForbiddenAttribute: ('datemodified', ) [12:45] grief [12:46] interesting, because the code seems to be able to poke other values quite happily [01:08] sabdfl: please... how do I get from here https://launchpad.net/distros/ubuntu/breezy/+sources/gajim/+pots/gajim/sv to the translation area? ;-) [01:09] Nafallo: add /+translate [01:09] https://launchpad.net/distros/ubuntu/breezy/+sources/gajim/+pots/gajim/sv/+translate/+login [01:09] that's a bit of a brown paper bagger [01:09] sabdfl: shouldn't that be a link in the portlet? :-) === Lovechild [n=dnielsen@0x50c71cc7.adsl-fixed.tele.dk] has joined #launchpad [01:10] Nafallo: yes, it should be [01:10] or what the "actions:"-thingie is called ;-) [01:10] i'm guessing there's a fix on the way [01:11] sabdfl: cool, thanx :-). I guess that would mean I don't have to file a bug about it? :-) [01:12] Nafallo: no, i think that one's already noted [01:13] i may actually be responsible for that [01:13] oops [01:13] sabdfl: hehe :-) [01:13] kiko: that's one for the 1.0 list [01:16] sabdfl: feel free to patch it ;-) [01:17] Nafallo: i just did ;-) [01:17] sabdfl: ROCK ON! :-D [01:36] wow [01:36] hmmm [01:40] mpt, so you're okay with the page titles I added? === superted [n=superted@213.167.101.222] has joined #launchpad [02:13] kiko: In fresh RF the titles are already there and the pages work [02:14] except that +gethelp links to +addticket, which is broken [02:14] mpt, must be the sab's interference [02:14] ProgrammingError: ERROR: relation "ticket" does not exist SELECT COUNT(*) FROM Ticket WHERE distribution = 1 AND sourcepackagename = 9 [02:14] argh [02:15] mpt, make schema [02:20] ok, that works too [02:20] so I have nothing to do here, then [02:20] mpt, the pages are already done? [02:20] wonderful [02:20] well, placeholders are there [02:20] any tweaking you'd like to do to them? [02:21] +translate is rather orange, but otherwise ok [02:21] yeah, I've tweaked +gethelp [02:21] mkay [02:21] well, thanks, then. this is actually worse than I had hoped for, because there's no way stuart's cherrypicking the fat patch all in [02:21] so I have no clue how I'm going to deal with this :-( [02:21] If we'd had the support thingy earlier, "Get Help Online..." could have directed straight to +support [02:23] though that's not a 100%-certain good idea, so perhaps it's good they are different URLs, to allow for redirecting or not based on later decisions [02:24] Those URLs are going to have to live for years [02:27] yeah [02:28] Merge to rocketfuel@canonical.com/launchpad--devel--0: [trivial] adds status legend to distributon release translations page (bug 2138), and fixes customization link text (patch-2375: mpt@canonical.com) === stub [n=stub@203-217-37-199.dyn.iinet.net.au] has joined #launchpad [02:33] fun, so tar.bz2 uploads break [02:34] good night mates [02:35] jordi: night, and thanx for everything today :-) [02:35] np :) [03:39] stub, so have a few moments to chat? [03:53] kiko: sure [03:53] stub, so couple of things [03:53] breezy release was on today [03:53] so tomorrow people might start hitting +gethelp and +translate [03:53] these pages are currently 500s === niemeyer needs some sleep.. [03:54] thankfully enough the sourcepackagenames exist now thanks to your good work [03:54] Night folks [03:54] niemeyer, sleep is for babies [03:54] :) [03:54] night [03:54] stub, however, unless we fix the pagetitles, they will go on being 500s [03:55] breezy releasenoted launchpadintegration [03:56] So there is a patch to cherry pick to fix this? [03:56] well [03:56] here's the problem [03:56] I /have/ a patch which fixes this [03:57] unfortunately mark landed a fix for the same problem in RF in his massive support-tracker branch [03:57] so much for keeping patches simple === mpool [n=mbp@cor6-ppp610.for.dsl.connect.net.au] has left #launchpad [] [03:57] So we need to branch production--1.31, fix, and merge back into production--1.31 [03:58] Or I can just cherry pick your fix into production [03:58] I never landed it in RF because of mark's bonk. [03:59] Landing to rocketfuel is nice, because it confirms that the code plays nice with head (cause the tests are run there), and when I cherry pick from there it confirms it runs nice with production too. But landing in rocketfuel is not necessary for production cherry picks. [04:00] I think the patch I landed added some failing tests to xx-notfound-traversals [04:00] is that a big deal? [04:01] stub, the patch basically adds pagetitles -- that's all that's broken there :-( [04:01] Yes - cherry picks will fail unless the tests pass [04:01] stub, I'll mail you a diff; how about that? [04:01] :) [04:02] Sure [04:02] If I can remember how to apply a patch manually. [04:02] patch -p1 < patch [04:04] sent [04:05] stub, so on to the next set of problems [04:05] stub, do you have an updated script from carlos? [04:05] No [04:05] really? [04:05] that's a shame [04:05] Unless he landed it in rocketfuel === mpt [n=mpt@200-171-140-32.dsl.telesp.net.br] has joined #launchpad [04:06] sheesh. [04:06] Does that mean the last run failed and I can resync the staging database today? [04:06] stub, well, it failed less horribly. [04:07] No diff from you yet btw... [04:07] stub, so here, I actually have carlos' patch. [04:07] grumble grumble [04:07] https://chinstrap.warthogs.hbd.com/~jamesh/pending-reviews/carlos.perello@canonical.com--2004/launchpad--devel--0/filtered-diff [04:08] So I should pull that branch and run the migration script against staging to see what happens [04:09] stub, that in addition to RF should produce a beautiful database. [04:09] well [04:09] right, if you pick up the stuff carlos landed in RF as well. [04:11] stub, so ready for part 3 in this drama? [04:12] Ok. I'll resync the staging database, update the code to rocketfuel trunk (with my config file fixes in pqm atm), merge in carlos' branch and run the migration script [04:12] stub, cool. any idea on how long will it take? [04:13] About two hours for staging updates to all happen (including the db sync), and another 20 odd hours for the migration script to run [04:13] 20 hours depresses me [04:13] I was kinda hoping, you know [04:14] to generate some working language packs tomorrow [04:14] I should just accept the fact that we're not going to launch rosetta for the next 12 days, right? [04:14] What? That someone pulled out some problematic database entries, added them into the sampledata so we wouldn't have to keep trial-an-error running against production data? [04:15] hey [04:15] carlos has been adding tests [04:15] ;) [04:15] the issue is that there are lots of little corner cases! [04:15] I'm hungy === kiko throws stub an r === stub eats it [04:16] ai ai ai [04:16] well [04:16] I'll ask carlos to give me instructions on how to generate the language packs [04:16] who knows [04:16] I might convince our DBA to give me read-only access to staging [04:17] You got an account on macquarie or mawson? [04:17] I used to have one on mawson [04:17] let's see [04:18] Permission denied (publickey,keyboard-interactive). [04:18] I guess not anymore. [04:18] I can give you access if you get an account on a more-secure-than-chinstrap box [04:19] I'll work on that tomorrow. Does salgado have access? [04:20] I think so [04:21] Nope... [04:21] hmmm [04:21] Same deal [04:21] I thought he had an account on one of those boxes [04:22] okay, I'll ask elmo and stay up tomorrow. [04:22] I'm checking. cprov has on mawson [04:22] As do you! [04:23] Unless elmo closed accounts and left the home directories there [04:23] id kiko [04:23] but my password doesn't work, hmmm. [04:23] Yup [04:23] whee! [04:23] it worked [04:24] you are there. [04:24] ok... I'll open up readonly access for you. [04:24] thanks === kiko should probably generate an ssh key on chinstrap [04:24] You type passwords? [04:24] stub, does that make sense, generating a key and adding it to my authorized keys? [04:24] never [04:25] but I hadn't created keys on chinstrap, just that [04:26] You want a separate key for that account? [04:26] "psql -d launchpad_staging -H asuka.ubuntu.com -U ro" should now work for you [04:26] stub, I don't want to go about copying private keys here and there [04:27] Why would you need to have any private keys on the servers? [04:27] for sshing from chinstrap to mawson? [04:27] Oh. I don't do that. [04:27] err [04:27] yes elmo? [04:28] is that frowned upon? [04:28] please use the damn proxycommand trick [04:28] I use it [04:28] I was just fooled to sshing from chinstrap to mawson and considered the ssh key. but whatever.. [04:28] then why you need to ssh from chinstrap to mawson? [04:28] because I don't think too much about where I am sshing from [04:28] perhaps I need more sleep [04:28] but then again [04:28] so do you :-P [04:30] stub, for the record, it's lowercase -h === mp1 [n=mpt@200-171-140-32.dsl.telesp.net.br] has joined #launchpad [04:31] and thanks [04:31] kiko: If you had a private key on chinstrap that let kiko@chinstrap ssh to mawson without passwords or ssh-agent etc., you have just made mawson less secure than chinstrap (defeating the purpose of requiring you to have an account on a machine more secure than chinstrap.) Same think if you ever type your mawson password when logged into chinstrap. [04:32] (not that ssh-agent is a particularly good idea to forward around either) [04:34] Don't convert the attack trees into a mesh [04:34] okay okay okay [04:36] stub, ready for part 3 in the drama? [04:37] Ya know, you really don't need to raise the dramatic tension. Just spit it out ;) [04:37] I need to test the channel [04:37] so salgado has some shipitness to land tomorrow [04:38] it's not very difficult [04:38] I'm doing the review now [04:38] however [04:38] it will land, say, tomorrow afternoon [04:38] now [04:38] this doesn't need to go into production until tuesday/wednesday [04:38] so I was going to ask what you thought of this [04:39] We have landed worse ;) [04:39] how about cutting production like, say, saturday morning and delaying production rollout till wednesday [04:39] Yup. Sounds good. [04:39] or whatever you feel comfortable with [04:39] because otherwise it's going to be difficult to cherry-pick [04:39] mark's landed the support tracker [04:39] that's going to be difficult [04:40] I have a QA intern starting on monday [04:40] so I'll sic him on staging [04:40] see if he can find bustage in time to fix [04:40] Score! === stub high fives kiko [04:41] Q... A? [04:41] we try harder! [04:41] What's that? ;) [04:41] questions and answers [04:41] he asks questions, spiv answers "sorry, my bug" [04:42] for instance [04:42] Q: "Why is it broken?" A: "It's software!" [04:42] there's this librarian issue [04:42] Todays rollout was brought to you by the letters 'Q' and 'A' [04:42] I don't know if I've told you about it [04:42] there are lots of Qs in this issue [04:42] Merge to rocketfuel@canonical.com/launchpad--devel--0: [trivial] Staging and production config changes (patch-2376: stuart.bishop@canonical.com) [04:42] I don't imagine you'll have seen any As lying around? [04:43] I'm full of A [04:43] Not yet, but I'll will be looking into today... [04:43] Or I'm full of something, anyway [04:43] oh so somebody fed you? [04:43] But in the mean time, I'm un-full of lunch. [04:43] spiv, hooray for As [04:43] lunch? is it that late already? my god [04:43] Dammit I still havn't had breakfast! [04:43] type faster kiko [04:44] stub: Well, me either ;) [04:44] I'm not really aware of the Librarian issue, but if spiv thinks he has a handle on it and will be working on it I probably don't need to ;) [04:45] that was all meant as just nastiness to master spiv [04:46] I know the issue is a lot trickier than the traceback suggests [04:48] Is there a bug#? [04:48] that's a good question [04:48] let me see [04:49] https://launchpad.net/malone/bugs/1887 === stub kicks off the staging update [04:49] who could have reported such bug? [04:56] What is interesting is that http://librarian.launchpad.net/264524/264557/gl.po is actually there and downloadable from the librarian, so it is purely a client.py issue [04:57] Maybe having difficulties downloading from the librarian (eg. when I forget to bounce it after an upgrade ;) ), but the exception being swallowed and converted to a LookupError [05:01] stub: Well, it smells like a transaction issue. [05:01] to me the same [05:02] spiv: Well, the librarian won't serve the file until the transaction that uploaded it has committed. [05:02] (and possibly will need a small delay for the commit to propogate) [05:03] Tell me more about this "small delay". [05:03] apart from that, I don't see a possible transaction issue in there. [05:03] Well, just that the client is needing to access database rows that the server has added and committed.. [05:04] If you say 'transaction.commit(); get_the_file_from_the_librarian()', there might be a race condition whilst PostgreSQL commits the transaction. If the librarian starts serving the file before that commit has finished, it will still see the old data in the table missing the newly added row. [05:04] (But I'm guessing here) [05:05] Well, the LookupError is due to a 404 on the server side. I got it backwards; the server needs to see rows that the client inserted and committed. [05:05] Hmm. I would have naively expected transaction.commit() to block until the commit was fully done and the changes visible to any new transaction. [05:06] But it would perhaps be interesting to see if immediately retrying would work around the problem. [05:07] Food for thought... I should get some food for my stomach. === robitaille [n=daniel@d154-5-117-228.bchsia.telus.net] has joined #launchpad [05:22] my god [05:22] need to bed [05:33] spiv: The Librarian connection will not see newly inserted rows if it is already inside a transaction because it is running in serializable transaction isolation level. eg. if Librarian thread had previously issued 'select' statements on the LibraryFileAlias it will not see newly inserted rows until the transaction is reset or the transaction isolation level changed. [05:46] spiv: If we have the librarian issue con.set_isolation_level(0), it will even see uncommitted rows, which could greatly simplify our transactional semantics. As far as I can see, this will not adversely affect the librarian (as it never alters rows and new insertions will never conflict). === SteveA [n=steve@office.pov.lt] has joined #launchpad [06:01] stub: In theory, the librarian should be starting a transaction for each web request, and aborting it at the end of those requests. Your set_isolation_level idea sounds good, though! === stub considers upgrading to breezy [06:37] spiv: bugger. isolation level 0 is autocommit in psycopg, not read uncommitted (which PostgreSQL doesn't have :-( ) [06:37] Ah, suck. [06:39] spiv: set_isolation_level(1) might help in this case (read committed), which would avoid the need to reset the connection every request if for some reason it isn't being done. But it won't improve the Librarian client transactional semantics at all. [07:03] I wonder if the client really is committing often enough. [07:04] The calls to the librarian and the calls to commit in po_export_queue.py are seperate enough that it's hard to tell. [07:11] Merge to rocketfuel@canonical.com/launchpad--production--1.31: [trivial] Fix some page titles on production (patch-4: stuart.bishop@canonical.com) === robertbb [n=robertbb@d154-20-129-24.bchsia.telus.net] has joined #launchpad === vinsci [n=nvinsci@dsl-sjkgw2jb1.dial.inet.fi] has left #launchpad ["Lmnar"] === niran [n=niran@sabin.Stanford.EDU] has joined #launchpad [08:02] stub: Good rant. [08:03] Didn't get enough sleep last night [08:04] ;) [08:04] Clearly you should be sleep deprived more often ;) === robitaille [n=robitail@d154-5-117-228.bchsia.telus.net] has joined #launchpad === dand [n=dand@gw.datagroup.ro] has joined #launchpad === carlos [n=carlos@243.Red-83-47-24.pooles.rima-tde.net] has joined #launchpad [09:10] morning [09:13] carlos: Morning. [09:14] carlos: can there be more than one pofile and one potemplate in a single export? [09:15] spiv, more than one pofile, yes. More than one potemplate no [09:20] carlos: Is it possible that the same pofile might be included in the same export multiple times? If so, is it likely? === spiv is finally understanding the po export code somewhat. [09:26] spiv, no, it's not possible [09:26] spiv, the db model will not allow that [09:26] That's good news :) [09:26] spiv, in fact, I think kiko told me that the code is not able to handle that and if you request the pofile twice, you get a db error [09:27] spiv, hmm, well, we could export twice the same pofile but in different transactions [09:27] if different people ask for it [09:27] it will happen in the same export run, but different transactions [09:28] Well the question I guess is will IPOExportRequestSet.popRequest return the same object multiple times in one invocation. [09:28] And it seems the answer is no, which is good :) === BjornT [n=bjorn@office.pov.lt] has joined #launchpad [09:29] spiv, right, the answer is no [09:30] spiv, hmm, looking twice to the db model... [09:30] spiv, it's possible, but not usual [09:30] Hmm. [09:31] So, here's what made me ask the question: [09:31] spiv, if they request a pofile and later the same pofile as a .mo export [09:31] transaction.commit() happens between invocations of process_multi_object_request, which deals with multiple files. [09:31] spiv, hmm, forget that, the db model allows that, the code does not [09:32] (why the export code refers to "objects" instead of files I don't know) [09:32] spiv, no idea either, daf wrote that code [09:32] from what I see, yes, it should be 'files' [09:42] hey === superted [n=superted@213.167.101.222] has joined #launchpad [09:47] jordi, hi [09:47] SteveA, hi, around? [09:50] carlos: SteveA should be around in 30 mins or so [09:50] BjornT, ok, thanks === Seveas [n=seveas@ksl403-uva-132.wireless.uva.nl] has joined #launchpad [10:02] moin moin [10:08] !niom niom :lfdbas [10:10] moin === WaterSevenUb [n=WaterSev@195-23-220-223.net.novis.pt] has joined #launchpad === cprov [n=cprov@217.205.109.249] has joined #launchpad [10:29] hi [10:29] i'm around [10:29] carlos: [omg [10:29] um, [10:29] carlos: ping [10:29] sabdfl: scripts that use zcml generally run as a special user [10:29] SteveA, hi, did you see kiko's review ? [10:30] this user can read/write stuff that has a permission declared for it [10:30] SteveA, I have a question for you related to the review he did for one of my branches [10:30] so in your case above, check that datemodified is in the interface, and is declared as a settable attribute. [10:30] carlos: i haven't read any email yet today. kiko's review of what? [10:31] REVIEW: carlos.perello@canonical.com--2004/launchpad--devel--0 [10:31] SteveA, it's related to helpers.py [10:31] I need to know what should I do with some functions added there in that branch [10:32] SteveA, he asked me to check it with you [10:33] jamesh: ping [10:33] so if you have time, I prefer to move it to the right place now instead of leaving it for another day (or we will forget it...) [10:34] carlos: okay, i'll look at it shortly. [10:35] SteveA, thank you [10:38] so, it is about running "sanity_fixes" on a pot message set's data [10:39] SteveA: the issue was a cut-and-paste readonly=True [10:39] SteveA, yeah [10:39] sabdfl: okay, that makes sense. [10:39] carlos: so, can you make it a method on a pot msg set? [10:39] SteveA: i have an issue, I'm trying to make a "removeform" [10:39] and have been fudging it with an addform [10:40] but now that I'm trying to add events to the mix, it has all gone pear shaped === mdke [n=matt@unaffiliated/mdke] has joined #launchpad [10:40] hi all [10:40] what's a typical url that this remove form will be at? [10:40] +unlinkbug [10:40] on what? [10:40] basically, I want to render it like an add form [10:40] i heard the ubuntu members email addresses got set up, how do I activate mine? anyone know? [10:41] s/addresses/forwards [10:41] i need to see the url, including its context object, to make sense of it [10:41] but instead of a def create() and def add(), I just want a def remove() [10:41] what's the context object? [10:42] in this case, it's a CVE [10:42] and I want to link, and unlink, it from a bug [10:42] so, i have a BugCve [10:42] and the link form looks like an addform for a BugCve [10:42] so, this unlinks a bug from the cve reference, but removing the BugCVE [10:42] with the CVE being a ContextWidget [10:42] or perhaps altering the BugCVE [10:42] and the bug being a bug number input widget [10:43] SteveA, hmm, could try to adapt it to use the 'self' argument yes, otherwise it will not make sense ther [10:43] removing the bugcve [10:43] there [10:43] there's a similar pattern for subscriptions [10:43] i've handled subscriptions by posting to the core ObjectView, and parsing the form in the __init__ of the object view [10:43] carlos: submission.pomsgset.potmsgset.apply_sanity_fixes(translation.translation) [10:43] but wanted to try something different for linking to bugs [10:44] can you use an edit form for this? [10:44] rather than an add form [10:44] not really, no [10:44] i want to select something for removal [10:44] the problem at the moment is this [10:45] when i remove the BugCve object, the addform createAndAdd method tries to adapt the return value of add() to an IBugCve [10:45] and of course None won't adapt [10:45] i was cheating, and returning the destroyed BugCve, but introducing events makes that trickery unworkable [10:46] let me see what I can do [10:47] why do you specifically want to use an add form for removing something? [10:47] SteveA, sure [10:49] SteveA: because there is no removeform [10:49] it's a hack [10:49] you can completely override createAndAdd and make it do what you want. [10:50] it sounds like a confusing hack, though. seeing as this "let's link some content object to some other object, via a linking object, and have a ui on this" is a common pattern in launchpad... [10:51] we should have an admin-links kind of form that makes this non-hacky. [10:52] Kinnison: on PackageDBRework, in which section does BinaryPackageName belong? [10:53] An add form is just an edit form with create and some extra pain-in-the-bum zodb specific crack (must return an object implementing the interface, because it assumes that result will be stuffed in the ZODB somewere). Unless it has changed recently, edit form is more flexible (addForm extends editform I think) [10:54] the other thing about an add form is that it is meant for adding something that is not there already [10:54] Merge to rocketfuel@canonical.com/launchpad--devel--0: [trivial] remove unused, broken, code dealing with binary packages. remove BugFactory. (patch-2377: bjorn.tillenius@canonical.com) [10:54] an edit form is about manipulating something that is already there [10:54] a remove form, if it existed, would also be about manipulating something that is already there [10:54] BjornT: binarypackagename didn't change [10:55] Kinnison: well, it's broken (not the parts that malone uses, though), it references the BinaryPackage table [10:56] SteveA: the problem is that i dont want to choose the thing to remove, BEFORE I display the form [10:56] here's the detail [10:56] i'm viewing a CVE [10:56] I want to go to CVE/+unlinkbug [10:56] there, I want to see a bug numer input widget [10:56] when I post that form, if the bug number is one for which there is a bugcve on that cve, it should be deleted [10:56] BjornT: The sql object? [10:57] the addform is nice because it allows you to specify the details [10:57] hence, input the bug number [10:57] instead of creating a new bugcve, though, i FIND the BugCve, and the destroy it [10:57] but, the addform then wants to go ahead and add something [10:57] i just want to get rid of that part [10:58] Kinnison: yeah [10:58] Because you want to use addform built from the existing IBugCVE schema rather than create a schema to describe your form and use editform? [10:58] BjornT: make a new entry in the table, thanks for spotting it [10:58] sabdfl: just override createAndAdd and make it do no creating and adding. [10:59] Mmm... that sounds familiar. [11:00] http://faassen.n--tree.net/blog/view/weblog/2005/09/06/0 <-- faassen says to ignore browser:editform and browser:addform, and use zope.formlib. we can experiment with this in a couple of weeks, when we get the latest zope3. [11:00] stub: the editform wants to edit an object === jinty [n=jinty@205.134.224.215] has joined #launchpad [11:02] the editform wants to edit some data. the data is defined by giving the editform a schema. you can override EditForm.update() to do whatever you want when the form is updated. [11:03] I mean EditView.update() [11:03] it is possible to use EditView as the base class for your own view class, and make it a simple browser:page [11:03] and not a browser:addform or browser:editform [11:04] that gives you a much simpler base to do customizations on [11:04] EditView is in lib/zope/app/form/browser/editview.py === mdke [n=matt@unaffiliated/mdke] has left #launchpad [] === mdz [n=mdz@ca-studio-bsr1o-251.vnnyca.adelphia.net] has joined #launchpad [11:19] SteveA: What is the officially accepted way of doing logical xnor in python? [11:20] don't mess with my head before i've had a cup of tea! [11:20] ddaa gave me ((bool) + (bool)) != 1 [11:21] we love punning [11:22] we do [11:22] I've commented the line as (bool) XNOR (bool) [11:22] just so we know what it's meant to be [11:22] >>> def xnor(a, b): [11:22] ... return (a and b) or (not a and not b) [11:22] ... [11:22] clarity, please [11:23] Hurrah for single-use clarity methods [11:23] for extra points, put the truth table in the docstring, as a doctest [11:23] and for minus points, do it as a lambda? [11:23] yes [11:24] :-( [11:24] no docstring [11:24] and, the confusing word "lambda" [11:24] when it grows up, it'll be a sheepda === Kinnison feels (left and right) or not (left or right) is a clearer xnor than yours [11:25] i just ripped it out of wikipedia [11:25] heh [11:25] I just scribbled down a truth table [11:26] aha [11:26] (not a ^ b) [11:26] how about that? [11:27] isn't ^ binary xor ? [11:27] in which case we're back to punning [11:27] if xnor(opts.generator is None, opts.intervention is None): [11:27] that's just dandy [11:28] >>> True ^ False [11:28] True [11:28] so, it does work boolean in a boolean context [11:28] okay, since it returned a bool [11:31] using the xor function is nice and clear, though [11:31] and i don't suppose speed matters at all here [11:32] gah [11:32] it's too late [11:32] if not ((opts.generator is None) ^ (opts.intervention is None)): [11:32] and I'm not rewriting that line *AGAIN* [11:32] okay === BjornT [n=bjorn@office.pov.lt] has joined #launchpad === cprov [n=cprov@217.205.109.249] has joined #launchpad [12:20] Can everyone please tell lifeless to get a better song? [12:20] dum de dum, dum dum === Kinnison 's brain dribbles out of his ears [12:21] drib bib ble, drib le [12:22] SteveA: ping [12:22] cprov: pong [12:22] SteveA: could you do another quick-review for buildd ? [12:23] ok [12:23] SteveA: -> https://chinstrap.ubuntu.com/~dsilvers/paste/fileM8sw8a.html [12:26] Is there a cheap way to convert a dict of dicts into something with attributes instead of keys? [12:26] stub, are you running the migration script on staging already? or are you waiting for my merge? [12:27] it appears you're not allowed to monkeypatch dict instances :-( [12:27] carlos: It is running now [12:28] 24.7005 done (985000 of 3987779). eta 12:26:46.294794 [12:28] Kinnison: kind of [12:28] cool [12:28] stub, thank you === carlos -> out for a while [12:28] see you later [12:28] Kinnison: why? adding arbitrary attributes to things is generally a bad idea [12:28] carlos: Thank kiko - he told me about it ;) [12:28] stub, I know [12:28] but I was not sure if you were waiting for me to merge my branch or not [12:29] and I had some problems adapting the test to the changes asked by kiko [12:29] SteveA: for code prettiness [12:29] Kinnison: yuck [12:29] Kinnison: arbitrary attribute access is very low-level in python [12:29] SteveA: self.config.intervention.pretarup is prettier than self.config["intervention"] ["pretarup"] [12:29] as you are running it already... I have some time to fix it before merging ;-) === carlos -> out === Kinnison shrugs, I'll use ordinary dicts [12:30] if you really want to do it, write a wrapper class that implements getattr as a call to __getitem__ [12:30] but, i think it is grim [12:30] now, if that's launchpad.conf you're talking about... [12:30] it's not [12:30] but hey :-) [12:36] cprov: reviewed, emailed. approved with some comments. [12:36] SteveA: thank you [12:39] Kinnison: I just find "xnor(a, b)" to be more obscure than "bool(a) + bool(b) == 1" [12:40] "bool(a) + bool(b) != 1" even... [12:40] ddaa: But you're not my reviewer :-) [12:40] SteveA: can I be the reviewer of Kinnison's patch, please? :) === _Rappy_ [n=hunt-pre@dsl-253-122.monet.no] has joined #launchpad [12:40] ddaa: There's klingons on the starboard bow, starboard bow, starboard bow! There's klingons on the starboard bow! Scrape 'em off, jim! [12:40] oneButNotBoth(a, b) === Kinnison loves that noise [12:41] or if you extend objects... a.oneButNotBoth(b) [12:41] ddaa: dude, it's a pun. puns are bad. [12:41] lifeless: that's a nice function name, especially for those not familiar with the wealth of logical operators [12:41] "when it grows up, it will be sheepda"... and you say puns are bad... [12:41] SteveA: but nuns are good [12:41] ddaa: i'm not committing that one to code. === Kinnison refers lifeless to http://www.nun.org.uk/ [12:41] lifeless: it is a requirement for the job, i hear. [12:42] SteveA: my argument was that the standard (not the common US one) logical diagram notation represents XOR as a box with "=1" inside it. [12:43] ddaa: common in Paris ? [12:43] SteveA: -> Why is there a '-' in here? did you mean the UNKNOWN-SUM ? [12:43] lifeless: I said, "standard, not common" [12:43] cprov: yes [12:43] ddaa: so your standard is uncommon ? [12:43] lifeless: sorry, http://www.nun.org.uk/fetishworks.png === camilotelles [n=Camilo@20132139198.user.veloxzone.com.br] has joined #launchpad === ddaa goes back at increasing launchpad value [12:44] lifeless: eitherOr is better than oneButNotBoth [12:44] SteveA: it's really not related with the patch, you know it, but I'll change, it's ok [12:44] SteveA: alternatively, 'onlyOneOf()' [12:45] Kinnison: not for americans or other non english speakers [12:45] cprov: great [12:46] sabdfl: ping, 'sup? [12:48] sabdfl: I just managed to set up my dialer net connection in breezy, so it seems that all is needed is the right PPTP server addressed and the nameservers per each ISP, what would you say of maybe adding to launchapd an interface in which ISPs can update their data, and then each lunchpad managed distribution can pull this data up into their respective netconnection pkgs.. [12:48] could be a nice feature for people in countires in which dialers are mandatory [12:48] (Like .IL for example) === Lovechild [n=dnielsen@love-sources/Lovechild] has joined #launchpad [12:52] SteveA: ping [12:52] hi [12:52] the pythno problem-files have precisely two revisions. [12:53] one in 1998-08-18, Initial revision by jack. [12:53] these are the ones with the stupid filenames? [12:53] and one to delete them in 1999-02-01 'removed old IDE stuff -- jvr' by just [12:53] yes === Keybuk [n=scott@syndicate.netsplit.com] has joined #launchpad [12:53] okay [12:53] so, junk [12:53] I'm inclined to just Filter them out and report that. [12:54] do yo uthink the python community will care ? [12:54] no [12:54] ancient history [12:54] cool [12:54] and junk === mdz [n=mdz@ca-studio-bsr1o-251.vnnyca.adelphia.net] has joined #launchpad [12:54] hardly even worth mentioning [12:54] ok. [01:03] spiv: ping [01:12] I: Base system installed successfully. [01:12] just like me, it longs to be, debootstrapped [01:12] :-) === mdke [n=matt@unaffiliated/mdke] has joined #launchpad [01:13] this after you turn down a office whipping [01:13] such _mixed_ signals === Kinnison likes to keep you on your toes [01:14] promises promises [01:15] sabdfl: for Xfce, would it make sense to create a new translators group? [01:20] Merge to rocketfuel@canonical.com/launchpad--devel--0: [trivial] correct computation of month bounds when timezone is not UTC (patch-2378: james.henstridge@canonical.com) [01:31] SteveA: how do I tell if a python string has non 7-bit ascii characters ? [01:31] str.encode("ascii") and trap the exception? [01:32] thanks [01:32] or, len([c for c in string if ord(c) > 127] ) [01:32] which may, or may not, be faster [01:38] Kinnison: bool, not len [01:38] prollobolee === Kinnison shrugs [01:40] 12:40 < mjg59> I like Tom Lord [01:40] 12:40 < mjg59> He's charmingly mad === Kinnison snorts [01:42] jamesh: ping [01:46] SteveA: yeah? [01:46] do you know the exact url that the "get help" app menu item will go to? [01:46] oh, it's okay, i have it [01:47] jamesh: has the lp gpg stuff hlanded yet ? [01:47] SteveA: sourcepackage-gethelp.pt is the page template [01:47] jamesh: and what did you think of the pendingreviews work ? [01:48] jamesh: yeah, i wanted to check that it would go do 'breezy' and not 'hoary' [01:48] is anyone feels like fixing a trivial bug, https://launchpad.net/malone/bugs/1857 :) [01:48] it's been bugging me for a while [01:49] lifeless: looks okay. I'll merge it soon. [01:49] jamesh: sweet [01:49] jamesh: I'll feed you updates if there are bzr api changes (there will be) [01:49] SteveA: it uses the "lsb_release --codename" command to pick the distrorelease name [01:50] SteveA: so it does the right thing whichever release you are using [01:50] it'd potentially work for distros other than Ubuntu, provided lsb_release gives the right info === cprov [n=cprov@217.205.109.249] has joined #launchpad === Seveas [n=seveas@ksl403-uva-132.wireless.uva.nl] has joined #launchpad === niemeyer [n=niemeyer@200.103.244.36] has joined #launchpad === salgado [n=salgado@200-171-140-32.dsl.telesp.net.br] has joined #launchpad [02:14] Good morning! [02:15] heyhey [02:33] Kinnison, around? [02:36] salgado: yo [02:36] lifeless: mmm, napples [02:37] hi Kinnison. I forgot what we discussed about that columns that were missing notNulls... binarypackagerelease.{essential, architecturespecific} must have a notNull=True. is that right? [02:37] yep, that's what we decided [02:37] niemeyer: morning [02:38] ddaa: niemeyer is here, you should confirm dates [02:38] ddaa: love the siren [02:38] ddaa: I could do this all day [02:38] Merge to rocketfuel@canonical.com/launchpad--devel--0: [trivial] handle +translate and +gethelp pages of sourcepackages that do not exist in a particular distrorelease by displaying the comingsoon page instead of giving a 404. (patch-2379: steve.alexander@canonical.com) [02:39] lifeless: There's klingons on the starboard bow, starboard bow, starboard bow! There's klingons on the starboard bow! Scrape 'em off, ddaa! [02:40] ddaa: http://10.90.90.199/Music/Misc/Star%20Trekkin&.mp3 [02:41] lifeless: check out ddaa's facial expression [02:43] lifeless: Good morning [02:43] niemeyer: how are you ? ready for the trip ? [02:43] lifeless: Do you have an idea about how much money do we need for one week in London? [02:44] lifeless: Almost ready [02:44] we have room and breakfast paid for [02:44] you'll need about 20 pounds for transport [02:44] and there is an allowance fo 15pounds a day for lunch and dinner combined, but that is expensed so you get it back later [02:45] so add that all up :) [02:45] and about 50 pounds for the occasional extra (beer, more expensive food, etc.) [02:45] food in london is insanely expensive, it's _very_ easy to overdue the dinner allowance [02:45] * to overdo === Seveas [n=seveas@ksl403-uva-132.wireless.uva.nl] has joined #launchpad [02:46] 200 pounds should probably make it then.. [02:47] 100 should be more than enough [02:48] niemeyer: I need to book my plane tickets. When are you flying to Montreal (so I'll try to book in the same plane, or as close as possible), and when and where would you like me to land in Brazil? [02:49] you should spend 1 week with niemeyer in brazil before heading to montreal === niemeyer checks [02:51] ddaa: [02:51] > 25 OCT - GRU - EWR - 2210 - 0600 +1 [02:51] > 26 OCT - EWR - YUL - 0725 - 0850 [02:51] That's the flight to Montreal === ddaa got too used to direct flights... [02:53] niemeyer: you are taking leave days on 27, 28, 31 and 1st nov? [02:54] (or maybe only the first three...) [02:55] ddaa: Huh? [02:55] You are expected in Montreal on Nov. 1st [02:56] ddaa: Ah, no, I'm going to be there for the two weeks. [02:56] I'm was asking whether you took the days between your arrival and Nov. 1st as leave or if you plan to be working. [02:56] That's not what the wiki says... [02:57] When you are going to be there and when you are required are two different things. [02:58] So, I want to know if the early time in Montreal will be a leave for you, or if it will be working time. So we can figure out when I should arrive. [02:59] ddaa: are you not going to brazil ? [02:59] When I should I brazil, I mean. [02:59] ddaa: if you are going to brazil, all the matters is that you arrive on the 16th or so [02:59] 1 week before the date you leave. [03:00] I'm moderately enthusiast at the perpective of extending the away time by two full weeks. [03:00] * enthusiastic === spiv [n=andrew@adsl-66-203.swiftdsl.com.au] has joined #launchpad [03:01] ddaa: Ok, I'll check that.. [03:02] so, if niemeyer does not take the time between his early arrival and the beginning of the LP team sprint as leave to enjoy the area, I'd rather try to use these days for the HCTLaunchpad sprint [03:03] otherwise, I guess I will have to take these as leave as well. [03:06] niemeyer: okay, tell me when you've decided whether you want to spend those early days in montreal on the sprint or on something else. I am already overdue for my plane bookings. [03:06] ddaa: I'm not planning any leaves.. [03:07] ah I see [03:07] niemeyer: I think you booked slightly early :0). We're just updating things [03:11] lifeless: Understood.. that's the case indeed. Will check the flights again. [03:11] SteveA: pong [03:12] hi andrw [03:12] i pinged you about an sqlobject issue, but i sent a mail to the list anyway. === cprov [n=cprov@217.205.109.249] has joined #launchpad [03:15] Merge to rocketfuel@canonical.com/launchpad--devel--0: [r=stevea] Fixing Buildd-Slave process termination workflow (patch-2380: celso.providelo@canonical.com) === kiko-zzz [n=kiko@200-171-140-32.dsl.telesp.net.br] has joined #launchpad [03:22] kiko: ping [03:26] carlos, carlos, carlos [03:29] kiko, kiko, kiko [03:29] kiko, I'm going to have lunch now [03:29] will talk when I'm back, ok? [03:30] one sec though [03:30] carlos, just confirm with me: stub's running the updated script, correct? [03:31] kiko, right [03:31] and okay with the review I sent? [03:32] stub granted me RO access to the database [03:32] so I can generate the new language packs IF you put up a wikipage explaining exactly how they are built [03:36] mpt: ping [03:42] SteveA: pong === otep [n=otep@AP-203.167.31.177.sysads.com] has joined #launchpad === lamont [n=lamont@15.238.5.62] has joined #launchpad === bradb [n=bradb@modemcable033.209-70-69.mc.videotron.ca] has joined #launchpad [03:50] woo, 17 conflicts [03:52] jordi: Around? [03:58] niemeyer: about? [04:00] Keybuk: Pong [04:01] carlos: are you landing a fix for the pofile menus? [04:01] sabdfl, I landed a fix for the upload/download last week, nothing more [04:01] niemeyer: busy? [04:01] carlos: staging doesn't look right [04:02] Keybuk: Nothing that couldn't be interrupted [04:02] ciao dudes, lunchtastic [04:02] I thought I might take half an hour to explain how Sourcerer works [04:02] sabdfl, I know, I added the old action links. I don't know why the new layout is not working [04:02] Keybuk: Perfect! [04:02] sabdfl, In fact I thought those new menu tabs were removed until mpt told me that it was a css change [04:02] Keybuk: I'm working on it, so it'll be great indeed. [04:03] Keybuk: Interrupt me whenever you want. ;)) [04:03] ok [04:03] so the basic class in Sourcerer is Inventory [04:03] think of it as simply a list of items that are sub-classes of InventoryItem [04:04] the job of sourcerer can be summed up as [04:04] 1) turn a bunch of files on disk into an Inventory, and a set of matching directories of source [04:04] kiko, the review is ok. The test is taking me much more time than the code changes.... it's not so easy to test those new methods as part of POTMsgSet... [04:05] 2) match InventoryPatchItems to their parents; match them to their counterpart Manifest*Entry objects in the previous release and general clean-up [04:05] 3) product a Manifest from the Inventory [04:05] carlos, well, as I said, you could just XXX it, and fix it later -- we don't want you to lose time over this [04:05] there are other battles to fight [04:05] the code for #2 and #3 are in the Inventory class, and InventoryItem classes [04:05] kiko, it's done, is the test the only thing that gives me problems [04:06] Keybuk: Ok [04:06] and are pretty much intended to be generic across the board. Once you have an Inventory, you do the same job on it [ inv.priorManifest(old_manifest); inv.prepareImport(); new_manifest = inv.createManifest() ] [04:06] you can see those calls in sourcerer.bubblewrap [04:06] Keybuk: Yes, I did that yesterday, and created a xml manifest using xmlfiles [04:06] yup [04:07] so if you look through Inventory, some of the noteworthy functions [04:07] Inventory.priorManifest, InventoryItem.matchingManifestEntry and InventoryItem.priorManifestEntry [04:08] these deal with matching up an InventoryItem to an equivalent ManifestEntry in the previous version [04:08] it's pretty simple -- if it's the same type with roughly the same path, we assume it's the same [04:08] Right [04:08] kiko, and anyway, the tests are working now... [04:09] Inventory.parentItems, Inventory.orphanItems, Inventory.matchOrphansToParents, Inventory.matchItems, Inventory.removeOrphans, InventoryItem.canBeParent, InventoryItem.isOrphan, InventoryItem.isParent, InventoryItem.tryParet [04:10] those all deal with matching patches up to their parent item [04:10] basically it's try every patch with every possible parent (where parents can include patches with known parents) until it applies without problem [04:10] That's a tricky part [04:10] yeah, basically you have [04:10] parents: items that can be the parent to a patch. This is "solid" things like a tar file, a zip file, a directory of source, etc. something we don't need to build [04:11] Keybuk: What do you do with "unknown" cases? [04:11] orphans: items that _need_ a parent. This is just "patches" at the moment -- but later we might make changesets or xdeltas, etc. [04:11] Ok === bradb jumps on the double-digit conflict bandwagon [04:12] now if you look at the parentItems function, it actually tries to order them intelligently using the "hints" for each item (more on these later) [04:12] so basically it uses the "this is what patches will apply to" hint as the first one to try [04:12] and we look through those lists through Inventory.matchItems [04:12] which puts successful matches back onto the parents list for the next try [04:12] rinse, repeat, until we have no more parents to try [04:13] if we have orphans left over, we remove their inventory items -- we can't import them. but by doing this we _don't_ remove the actual patch file later, which means that the patch is just imported in the parent as-is [04:13] so instead of an empty "patches" directory with a branch for the patch file inside it [04:13] you see a "patches" directory with a checked in, version-controlled, patch file [04:14] every instance I've seen so far, it's been a patch that actually doesn't apply and is obsolete and left in the source because the maintainer didn't bother removing it [04:14] Humm.. [04:14] One case that comes into my mind is a -p0 patch adding a new file. [04:15] yeah, those work for everything fortunately we default to applying it to the .diff.gz (in Debian's case) so the result is almost always right [04:15] if we get it slightly wrong, it's ok -- the user can fix it up with hct later [04:15] Understood [04:16] we now have an Inventory with matched up patches and parents hopefully [04:16] so we go and make sure that it exists on the disk in the right state -- that's the Inventory.placeInLibrary, Inventory.cleanLibrary, InventoryItem.placeInLibrary functions [04:17] in effect, we have a directory for each InventoryItem which contains a clean copy of the source we want to import for it [04:17] (ie. with files-that-will-be-branches removed and stuff) [04:18] (note that Library in HCT terms doesn't refer to the Launchpad Librarian -- spiv stole my term) [04:18] a Library (hct.util.library) is just a managed temp directory [04:18] Yes.. it's a directory where files are expanded. [04:18] Interesting concept :) [04:19] ok, so the final thing we do is call Inventory.createManifest (which calls InventoryItem.createManifestEntry and InventoryItem.createBranch) [04:19] But TempDir would be a better name, I think.. ;)) [04:19] this creates a Manifest object and lots of Manifest*Entry objects in it that look and smell exactly like the Inventory ones [04:19] but also does the job of actually making the baz branches, doing the import, etc. [04:20] the end result is something we can use with HCT [04:20] Cool [04:20] so that's stages #2 and #3 of Sourcerer, we entirely skipped stage #1 [04:20] which is perhaps the "interesting" bit [04:21] Who handles the actual import procedure? I mean, someone has to take care about moving the new files into the correct old files, and removing unexistent old files, right? [04:21] Or perhaps baz already has some smartness for that? [04:21] most of that is done by HCT -- at this point Sourcerer just acts like an HCT client and does "working_tree.importFrom(library_dir)" [04:21] that's hct.workingtree.WorkingTree.importFrom [04:21] Ok [04:21] (hct has an equivalent to baz import) [04:22] so, stage #1 [04:22] turn a bunch of files on the disk into an Inventory [04:22] Inspect! [04:22] this is partly specific to a source format, and partly generic base classes that can be overriden [04:22] and yup, that's what Inspector is all about [04:23] the base class here is the Inspector [04:23] there are sub-classes to deal with particular file-types; TarInspector, ZipInspector, PatchInspector, etc. [04:23] the job of an inspector is to open up the file, get it onto disk if it can, go through the contents, identify any other special files within it, and instantiate a new Inspector for those [04:24] pretty much, instantiating any Inspector sub-class does this [04:24] note that for a patch, we must _already_know_ at this point what its parent is and prune level -- so this is only really useful for things like the .diff.gz [04:25] Keybuk: It will inspect the patch itself, or the full tree with the patch applied? [04:25] it inspects the patch itself [04:25] the full tree is useful if we find other things in it, only [04:26] the *Inspector classes are pretty trivial, and hopefully obvious in how they work [04:26] their job is to create an Inventory of that file [04:26] and they do this in partnership with another class, FileInventory [04:26] So, they get a orig.tar.gz, and find the patches inside it. Is that the case? [04:26] yup [04:26] Ok.. it didn't sound obvious at first because rpms are a bit different in that sense. [04:27] when an Inspector starts, it calls FileInventory.start(); for each "interesting file/dir/etc." it finds inside it, it calls FileInventory.append*(); and when done it calls FileInventory.finish() [04:27] you always have an Inspector/FileInventory pair [04:27] I don't think a Inspector would be needed for rpms, since the interesting content is always "outside". [04:28] in fact, if you look at the inspect() example function at the bottom, it instantiates a FileInventory then the Inspector and couples them [04:28] We just need one, perhaps, that will inspect SRPM files. [04:28] right [04:28] the job of FileInventory is to decide whether what the Inspector has found it useful or not [04:28] ... and store it, if it is. [04:28] and to make InventoryItem objects for useful things, and ignore non-useful ones [04:28] yup [04:28] there's stuff in there to turn a filename into something "Inventory-local" [04:29] if you look at the bottom of debian.py, you'll see there's actually a FileInventory sub-class it uses which grabs out the top-level debian/ directory and turns it into the packaging item === niemeyer checks [04:30] Nice! [04:30] (it's almost all doc-string, that class) [04:31] so now we have a generic framework for inspecting any kind of file, and making a chain of InventoryItems out of it [04:31] Keybuk: Yes, very well documented. [04:31] we still need an uber-object to actually make a complete Inventory of the lot, as well as pick out the files to inspect [04:31] the simplest of those is upstream.py [04:32] UpstreamInventory just picks the appropriate Inspector class, matches it with a FileInventory object it creates, and takes the items out of it it [ self.extend(contents) ] [04:33] so if you want a Manifest of any zip or tar file you have on disk; that's what you use [04:33] kiko, ping [04:33] there's one little bit on the end of that, the branchPolicy() function -- this has the job of setting the name and hint for any interesting things in the inventory [04:34] it always just sets the first item to ORIGINAL_SOURCE and suggests --release-- for the branch name [04:35] Ahh, so that's what model.name is [04:35] yeah, I'll get to models in about 10 minutes [04:35] :) [04:35] so, UpstreamInventory gives us the inventory of a simple one-file sourec [04:36] DebianInventory (in debian.py) is along the same lines, but a bit more complex [04:36] it possibly has to inspect two files (.orig.tar.gz and .diff.gz) [04:36] and the branchPolicy function is actually quite involved [04:36] with various hints and names that can be assigned to different bits [04:37] and even more wild, it actually reforms the Inventory sometimes [04:37] if we were to leave the inventory as-is, we'd end up creating an .orig.tar.gz and a .diff.gz -- which while exactly what we saw, aren't the best form for distro people -- they expect an .orig.tar.gz and an unpacked directory [04:38] so we mutate the inventory to turn the diff into an InventoryCopyItem instead, and rename/move all the children of that about [04:38] Makes a lot of sense [04:38] on top of all that is bubblewrap [04:39] it picks either UpstreamInventory or DebianInventory, runs the functions in the right order to make a Manfiest and saves it to the HCT URL given [04:39] it takes away the sharp-edges [04:39] "Copy" is how the assembled tree will be generated out of the baz/bzr branch, right? [04:40] right, a Manifest consisting entirely of ManifestCopyEntry objects is basically an arch config [04:40] Interesting [04:40] sabdfl: Just a note that because I've changed everything to be registered on IBugTask instead of IBug now, anything that you do that involves registering things against those interfaces or writing ZPT against those APIs as their context, or traverser code that traverses IBug or IBugTask will give me a lot of hard-to-resolve conflicts. [04:40] ok, so musings on how to do an SRPM importer with this model [04:41] you could create an SrpmInspector which knows how to unpack them, spread the contents on disk, and inherently cause those contents to be inspected (because that's implicit) [04:41] and then an SprmInventory class which just instantiated an SprmInspector/FileInventory pair and applied branchPolicy afterwards [04:42] most of the code to do that can be c&p from the old rpm.py -- it just happens to predate this cute model of doing imports [04:42] (in particular rpm.py still contains its own "patch dating" code, before I ripped it off into the generic core) === lifeless gets nervous at cute code [04:42] s/at/around [04:42] lifeless: dude, you helped design it [04:42] you sat me down on your knee and taught me about programming patterns, and unit tests, and stuff [04:42] Keybuk: run and hide, run and hide! [04:43] Keybuk: you sat on lifeless' knee? [04:43] waayyyyyyy back in August last year [04:43] that explains a lot [04:43] Keybuk: I'm just teasing. Don't you get nervous around cute things ? [04:43] lifeless: no, I get horny === Kinnison nods [04:43] they are not exclusive y'know :) [04:43] niemeyer: anyway, dodging the peanuts from the gallery for a minute ... === lifeless launches a lolly goblet [04:44] most of the code in rpm.py can be thrown away in favour of the generic core -- and c&p to turn it into an SrpmInspector class instead [04:44] or, if you prefer, you could just write the "unpack an srpm, spread it out and inspect the pieces" code in SrpmInventory itself [04:44] Ok [04:44] (there's no DebianSourceInspector, for example) [04:45] I'm not actually sure which would be easier [04:45] I'll figure it out :) [04:45] I suspect SrpmInspector is easier, because you just have to write the "open an srpm", "list the contents of an srpm" and "put the contents on disk somewhere" functions [04:45] the Inspector stuff takes care of the rest for you [04:45] I was thinking about building an assembled tree which would match the format expected by rpmbuild (SOURCES/*, SPECS/*.spec, etc). [04:46] yup [04:46] Keybuk: Is that what you had in mind? [04:46] so Manifest output expectations [04:46] don't bother trying to replicate the two-level Debian format -- that's actually going away with W&P [04:46] SOURCES/ [04:46] PATCHES/ [04:46] Nice! [04:46] SPECS/ (btw... InventoryFileItem/ManifestFileItem is what you want for this) [04:47] is one possibility [04:47] though, to be entirely honest, I'd actually suggest just doing: [04:47] [04:47] [04:47] [04:47] it's up to you though, either way would work well [04:48] making them match rpmbuild has plus points, so does making them flat [04:48] you can pick [04:48] Are you talking about the assembled tree or the branches? [04:48] the assembled tree looks like the "path" entry for each ManifestEntry [04:48] I'm talking about the contents of the path field :) [04:48] :) [04:49] ok, so almost exactly 10 minutes later [04:49] a quick recap on the fields of Manifest, I think you probably know all of these by now, but just making sure [04:49] path -- where it goes in the assembled tree [04:49] Debian sources have an icky "source-1.0/debian/patches/01-fix-something.patch" format for this [04:50] Keybuk: is any of your stuff using foreign keys to the changeset table? [04:50] but it means it gets assembled in the right format for dpkg-buildpackage [04:50] ddaa: yes, ManifestEntry [04:50] SteveA: Should class SourcePackageFacets(StandardLaunchpadFacets): exist any more? [04:50] mpt: ping again [04:50] hint -- this is a ManifestEntryHint [04:50] ORIGINAL_SOURCE = reserved for the original, unmodified source tarball [04:50] (10:36:27) SteveA: mpt: ping [04:50] (10:42:31) mpt: SteveA: pong [04:50] PATCH_BASE = default base for new patches (if the user doesn't specify one) [04:51] (give it to the major source tarball of the package) [04:51] mpt: yep, just came back from lunch [04:51] PACKAGING = for you, the spec item [04:51] dirname -- this isn't anything to do with path; this is the directory name that gets encoded _inside_ the tarball, zip or patch [04:51] Keybuk: How does get_source notice that you've added something to hct? Does it rely on a new version of get_source being added, or is it just waiting for your script to do the import? [04:52] a Entry with path="foo/bar-1.0.tar.gz" and dirname="wibble-1.0/" would create foo/bar-1.0.tar.gz which when unpacked puts all the files under wibble-1.0/ === jinty [n=jinty@205.134.224.215] has joined #launchpad [04:52] SteveA: The reason I ask is that I found two copies of it in browser/sourcepackage.py, probably a bad merge [04:52] Keybuk: is that precious data, or can you regenerate it? [04:52] for patches, this is also the major hint as to the -pX date [04:52] ddaa: precious [04:52] almost certainly a bad merge [04:53] jbailey: grabs the list once a day [04:53] Keybuk: Gotcha [04:53] (and sourcerer uses the same list to do the imports) [04:53] SteveA: So, should it exist at all, or not? [04:53] niemeyer: finally there's branch and changeset (ooh look, two of the conversations just merged ) [04:53] branch is the arch branch we need to checkout [04:53] mpt: i expect it should exist. [04:53] and changeset is the actual changeset on that branch [04:53] ok [04:54] because sources can share a branch, changeset is important -- it tells us whether to checkout --patch-1 or --patch-9 of the debian/ directory [04:54] Keybuk: in production, all the ManifestEntry.changeset are NULL [04:54] as well as /any/ other piece of the source [04:54] Keybuk: 'kay. I'll be more patient then. =) [04:54] ddaa: there's no imports in production, so I'm rather surprised if there's any ManifestEntry records at all [04:54] carlos, jordi: seahorse is not translatable? [04:55] allo allo allo [04:55] whats up ? [04:55] launchpad_hct=# select count(*) from manifestentry; [04:55] 5250 [04:55] launchpad_hct=# select count(*) from manifestentry where changeset=null; [04:55] we would like to be able to DROP TABLE Changeset as part of the BranchDataStorage (because we are removing Changeset.branch and that would be annoying to convert) [04:55] 0 [04:55] hang ong [04:55] this discussion, if its what I think it is is premature. [04:56] ddaa: in production, its safe to drop the changesets as tey are nmot referenced yet. [04:56] sorry [04:56] launchpad_hct=# select count(*) from manifestentry where changeset is null; [04:56] 111 [04:56] me learns SQL again [04:56] Keybuk: we'll be talking next weelk aboutthe impact on hct, you me mark neimeyer [04:56] lifeless: that's cool [04:56] I suspect it will be "replace changeset with revno" or something [04:56] lifeless: ack, but I wanted to check because "yet" tends to have very changing values. [04:56] or "don't update casey to the latest db yet" [04:56] Keybuk: right. that would be bad. [04:57] (back to the lecture) [04:57] Keybuk: something like that, Changeset -> Revision and Changeset.branch -> RevisionNumber table [04:57] niemeyer: so, that's ManifestEntry's properties ... ManiefstPatchEntry also has an extra "patch_on" field that tells us what the patch gets applied to; or should be diff'd from [04:57] that's actually a reference to the ManifestEntry object, rather than a number or anything [04:58] in the database we use sequence numbers to replicate that [04:58] ddaa: works for me [04:58] lifeless: so, IIUC I should not DROP TABLE but DELETE everything. [05:00] Keybuk: Understood [05:01] Merge to rocketfuel@canonical.com/launchpad--devel--0: Change u'\u2022' with a space character automatically. r=kiko (patch-2381: carlos.perello@canonical.com) [05:02] ddaa: yes, DELETE FROM REVISION [05:06] niemeyer: right, now if you look at InventoryItem you'll see it basically has the same properties [05:06] but with a few variations [05:06] parent_item <~> patch_on (actually ManifestEntry will probably become parent_item soon because of a bug I found :p) [05:07] virtual instead of branch/changeset -- at Inventory time, we don't yet have the branches; we just need to know whether or not we make branches [05:07] a virtual item is one that we need to assemble, but doesn't actually have a branch of its own -- a typical example is an .orig.tar.gz that only contains other tarballs -- no point checking in something empty [05:08] Hummm.. interesting. Wasn't aware about those. [05:08] there's also prefix, which is the common path of everything inside it -- this is used to generate dirname, and regenerate it if we change our minds later [05:08] yeah [05:08] virtual items pretty much only show up in Debian [05:08] you can do tricks like this [05:09] path="foo.tar.gz", virtual=True [05:09] path="foo.tar.gz/other1.tar.gz", virtual=False [05:09] path="foo.tar.gz/other2.tar.gz", virtual=False [05:09] other1 and other2 will be imported as branches [05:09] hct assemble will create just a foo.tar.gz file [05:09] which when unpacked gives you other1.tar.gz and other2.tar.gz files [05:09] Ohh! Cool :) [05:09] which when unpacked give you their respective branches [05:10] (the path of any entry/item can be relative to the path of another ... which means it gets assembled inside it) [05:10] consider [05:10] foo-1.0/debian/, virtual=False (--packaging--) [05:10] foo-1.0/debian/patches/01-something.patch, virtual=False [05:10] foo-1.0/debian/patches/02-something.patch, virtual=False === cprov [n=cprov@217.205.109.249] has joined #launchpad [05:11] the patches/01-something.patch and patches/02-something.patch are assembled inside the debian (packaging) directory before that is put in place [05:11] the debian/ (packaging) directory is itself relative to the foo-1.0/ branch [05:12] carlos, you are da man [05:13] and there's one more property of InventoryItem (and ManifestEntry too, but it's in one of my secret uncommitted directories right now) [05:13] mode [05:13] uh, model === Keybuk learns to type [05:13] model is an instance of BranchModel (in hct.model) [05:13] all InventoryItems have them [05:13] so, to explain what they do, I'll explain why they exist [05:14] SteveA: ping ? [05:14] I was having a hard time keeping track of whether to branch off the upstream import, the original tarball, the point in cvs we found the closest copy, etc. [05:14] I had code that tried to assign a priority to each one, and only defer in cases of lower priority [05:14] then I tried to reorder the code to do things in priority order [05:15] neither worked and confused the buggery out of me [05:15] cprov: hello [05:15] so I charted it all out on my whiteboard, and had a little table of "parent in the manifest", "entry from previous manifest", "upstream import we're based on", "point in cvs we found" [05:15] and tried to work out the net effect [05:15] and I realised, why not just have a class that encapsulated that table [05:16] then I could dump the entire logic into that class as one function [05:16] that's what BranchModel is [05:16] as you set up an Inventory, you fill in the fields you know about [05:16] SteveA: aparently no sqlbase method (quote, quote_like, sqlvalues) is safe against escape chars ('\\'), is it right ? [05:16] .model.name you set to the --bit-- of the branch if you care what it should be. (mostly you don't, because it's taken from the filename if missing -- but you might want to use --packaging-- for the spec branch) [05:16] cprov: i don't know for sure. but, probably not. [05:17] .model.parent you set to the .model of the parent item in the same Inventory (later Manifest) [05:17] if priorManifest() is called, that sents .model.prior_entry to point to the previous ManifestEntry === mdke_ [n=matt@81-178-149-216.dsl.pipex.com] has joined #launchpad [05:17] if findUpstream() [some shaky code I'm not entirely pleased with] is called, that sets .model.based_on to the manifest entry of the upstream import [05:18] and likewise findUpstream() might set .model.sync_with to the CVS point [05:18] so it's an object that just keeps a record of all the interesting things [05:18] those are the "in" properties [05:19] it also has a bunch of "out" propreties [05:19] Right, sounds reasonable [05:19] there's another class called Naming (in hct.naming) that works with it [05:19] this is icky, Naming is already gone and folded into BranchModel [05:19] so pretend the functions you see there are in BranchModel === mdke_ is now known as mdke [05:20] basically there's a function to take the "in" properties, work out exactly what to do with each of them, and toss out a "Branch" object at the end of it [05:20] Naming.newFromModel [05:20] as well as set the "out" properties [05:21] and then there's Model.create which takes the "out" properties and the branch object, and actually puts the branch together [05:21] there's workflow here === depoll is now known as dePOLL [05:22] the idea is that every time you want to make some changes to a manifest, you make a model, manipulate it, then save the model back to the manifest (thereby updating it) [05:22] next week at the sprint, I'll show you how things like "give the user local branches to commit to", "give the user a new patch branch", "merge two manifests", etc. all work with this Model API (and are all TRIVIAL! Muahahaha!) [05:23] for now, you just need to know that you fill in the .model.name property to the branch name if you care what it should be [05:23] Ok :)) [05:25] Keybuk: So, that was indeed a very nice overview of sourcerer. Thanks a lot! [05:25] last useful bits [05:25] sourcerer/deb/ is the module that implements a pure-Python version of the bits of dpkg-source we needed [05:25] sourcerer/sprm/ is the stuff jamesh wrote to do the same for src.rpm === hannosch [i=hannosch@85.182.70.124] has joined #launchpad [05:26] Keybuk: I've seen that.. Btw, Smart implements control-file parsing as well. :) [05:26] and pretty much everything in both hct and sourcerer use hct.util [05:26] which is Keybuk's library-o-happy-python-joy [05:26] Keybuk: I'm not yet sure about how important parsing the spec file really is. [05:26] kiko, https://wiki.launchpad.canonical.com/LanguagePacksHowTo [05:26] me neither [05:27] so there you go, you now know more about sourcerer and hct than anyone else in the company [05:27] Keybuk: Talking the patch files should be just a matter of trying to create PatchFiles out of the contents and checking if it errors or not. [05:27] yup, I should think so [05:28] let the generic code worry about matching them to their taralls [05:28] Keybuk: I don't think so.. :) But I'll do my best to learn and help you. [05:28] hehe [05:29] thom did make some rpm 4.4 packages before he left for greener pastures [05:29] http://people.ubuntu.com/~thom/ [05:29] hct.util has many nifty utilities.. [05:29] still on there, if youw ant to play with them [05:30] Will certainly be useful === \sh [n=sh@server3.servereyes.de] has joined #launchpad [05:47] Nafallo: if it's not in breezy and it hasn't been setup, maybe not. [05:48] jordi: seahorse is in breezy, probably not the later though. [05:48] Nafallo: in breezy main, or breezy universe? [05:48] jordi: universe :-) [05:49] if it's universe, it's not automatically imported [05:49] jordi: ah, so you have to kick it for me then? :-) [05:49] hmm, the product doesn't even exist. [05:50] nope, not as product, but the package should exist. [05:50] atleast in the archives :-P [05:51] I thought there was a product in launchpad for every package in ubuntu, even universe. [05:52] but apparently nto. [05:52] kiko: ping [05:52] YES [05:53] how goes it SteveA? [05:54] great [05:54] my checkout of seahorse was last updated in April 2003 [05:56] carlos: so when we create these kind of products and do the initial import of files, who is in charge of refreshing them? [05:57] jordi, who asked you to do the import [05:57] jordi, or the own translators [05:58] jordi, the idea is tha tusually, we only import products that upstream ask for them [05:58] carlos: what if Nafallo suddenly decides to go live in the jungle? Who takes care of "his" products? [05:58] carlos: that isn't what I was told [05:58] jordi, or people that will take care of those updates from time to time [05:58] I was told to import mostly everything that's requested. [05:59] jordi, well we don't reject anything, but it's good to ask them to get that compromise... === cpro1 [n=cprov@217.205.109.249] has joined #launchpad [05:59] carlos: Nafallo may agree to do that now, but he might go MIA in two weeks. [05:59] carlos: anyway, seahorse belongs to gnome cvs. [05:59] So I guess it needs to be assigned to GNOME translators, which makes it not so useful to Nafallo. [06:00] jordi, I know, and we cannot do anything until we implement a way to import directly from upstream [06:00] jordi, right [06:00] carlos: yeah. [06:00] Nafallo: are you a member of your lang's GNOME translation team? [06:01] jordi: nope === camilotelles [n=Camilo@20132139198.user.veloxzone.com.br] has joined #launchpad [06:01] jordi: and I'm not planning to be, since I only do rushs on translation from time to time and are mainly a packager kind of guy :-) [06:02] Nafallo: then I guess it wouldn't be useful at all to add seahorse for you now. [06:02] carlos: do you agree with that? [06:03] jordi: indeed, I'll have to use gtranslator and add an upstream wishlist bug or something instead :-P. [06:03] nod [06:04] jordi, yeah, the only way to translate GNOME modules is using their teams [06:04] ok. [06:04] Nafallo: sorry. If you're really interested, you could talk to them about joining it. [06:04] it shouldn't be a problem [06:05] Nafallo: what language is this? [06:09] jordi: swedish [06:10] oh [06:10] MENTHOS' II! [06:10] jordi: seems translations exist in their cvs already, but it doesn't seem to be in breezy [06:10] atleast not up-to-date :-) [06:10] hehe [06:11] Nafallo: maybe translations were added after release, or the package is not up to date? [06:11] jordi: the package is up-to-date with debian, but not with upstream indeed [06:12] I know who to kick :/ [06:12] hehe, we _are_ in UVF still ;-) [06:12] I pinged [06:14] still no updated swedish translations. [06:14] you upgraded? [06:14] I could do them "off rosetta" and add them to the package with my MOTU role ;-) [06:14] http://sourceforge.net/mailarchive/forum.php?thread_id=7838669&forum_id=4102 [06:17] jordi: I settle for improving the po manually and include it in breezy or something :-) [06:21] Merge to rocketfuel@canonical.com/sqlobject--test--0.6: Fix BoolValidator to not treat NULL values as False (backported from upstream's svn trunk). r=SteveA (patch-35: guilherme.salgado@canonical.com) [06:29] Nafallo: good luck :) === Seveas [n=seveas@seveas.demon.nl] has joined #launchpad === bradb & # lunch [07:16] mpt: ping [07:16] sabdfl: he's away for a couple more hours. [07:24] meh @ not being able to write a comment when you fix a bug in Malone :-/ [07:24] SteveA: where is the bit that registers "addform"? [07:24] Keybuk, there's the whiteboard.. [07:25] sabdfl: do you mean, where is the thing that processes the browser:addform zcml? [07:25] yes [07:25] kiko: that isn't a comment that appears for anyone else though [07:25] I generally like to close a bug with an explanation of /how/ I fixed it [07:25] there's an AddViewFactory, but what calls *that* [07:26] also, how hard would it be to have a /fmt:moin ? [07:26] just to render a text field as html, with moin rules [07:26] the bulk of it is in zope/app/form/browser/metaconfigure.py has the things that process that zcml directive === cpro1 [n=cprov@217.205.109.249] has joined #launchpad [07:27] in launchpad, it is actually processed by something in launchpad/webapp, but all that does is support the facet=".." stuff we need for menus. [07:27] if the moin formatting stuff has a reasonable API to call, it would be easy to have a /fmt:moin [07:27] SteveA: i've written a thing that looks similar to AddView, and i want to get it to handle we might need to think about cacheing its output though. [07:29] sabdfl: the code you need is in metaconfigure.py [07:29] you can see examples of testing new zcml directives in launchpad/doc/zcmldirectives.txt [07:30] on the other hand, if you want to pass it on to me, i can work on it on monday. [07:31] metaconfigure/EditFormDirective looks quite straightforward [07:31] you also need to write a schema for your directive. [07:31] see zope/app/form/browser/metadirectives.py [07:32] you also need to hook it up [07:32] see zope/app/form/browser/meta.zcml [07:32] sabdfl, SteveA: browser:form already exists in zope 3.1, maybe we could simply backport that if it does what we want? [07:32] we hook up new directives in launchpad in webapp/meta.zcml [07:32] we'll be moving to the new zope in under 2 weeks. [07:33] however, i'd recommend against adding browser:form, because it is easier to just use your own base-class, and register it as a normal browser:page view. [07:33] much less infrastructure to set up [07:34] much less to test [07:44] SteveA: can i get fields, and keyword_arguments, and schema, with a normal browser:page? [07:45] no. but, you can set them in your class in python code. === bradb returns [07:46] zope3 is moving towards doing more of this "assembling a form" stuff in python code, and not in zcml. [07:47] sabdfl: did you get my note from before about conflicts? [07:54] bradb: yes [07:54] ok === hannosch [i=hannosch@85.182.70.124] has left #launchpad [] === niemeyer_ [n=niemeyer@200-193-158-174.ctame7006.dsl.brasiltelecom.net.br] has joined #launchpad [08:15] ciao dudes [08:19] <\sh> jblack: ping [08:20] <\sh> or at least some bzr/baz pros here? I need a short information about importing baz/bzr to svn [08:21] <\sh> and vice versa without losing the changelog history ;) [08:23] hmm? [08:23] which one? [08:25] <\sh> jblack: in common...any possibility? I'm trying to convince one upstream to use baz/bzr but they are using trac as basement for their development env...and this plays nicely with svn...so I want to import it to your bazaar server and provide some ubuntu specific patches (as I did now with lp integration) but need a possibility to import as well those changes automatically to svn...(best way without the diff thing) [08:26] Launchpad can convert cvs/svn repoistories into bazaar archives. [08:26] There is a tool called tailor that can convert svn archives into bzr. There's also a tool to convert bazaar archives to bzr archives called baz2bzr [08:27] <\sh> but baz2svn / bzr2svn is not invented? :) [08:27] Tailor probably can. [08:28] I hear that tailor is a bit lossy on history though. [08:29] <\sh> so the best way is manual work...2 branches...one orig branch which is imported from svn and one working branch for ubuntu...diffing those two branches and repatch the svn head checkout [08:29] Merge to rocketfuel@canonical.com/launchpad--devel--0: [trivial] Add sbuild.conf to launchpad-buildd package, release v4 of package (patch-2382: daniel.silverstone@canonical.com) [08:30] That should work, yes. [08:31] Carrying code through two RCS systems bidirectionally is still not a very well explored area. [08:31] There's been a few successes and a few failures, but I'm not aware of any clear set of rules that universally apply. [08:31] jamesh: ping? [08:33] <\sh> jblack: ok...but when I generate a changelog text from all commits to baz/bzr...generate a diff to the main svn export branch and patch it to a clean svn checkout..and provide the history of my baz/bzr commits into a single commit message to svn..this should work...*nodnod* yeah..lets try it [08:34] lifeless: can you get the builddUI.diff at http://10.90.90.200/~cprov/builddUI.diff and verify if it's ok ? [08:35] jordi, got those pots ready for you [08:35] jordi, emailing to r@u.c? [08:37] lifeless: for celso.providelo@canonical.com/launchpad--builddUI--0--patch-43 [08:40] salgado, ping? [08:40] kiko, pong [08:41] salgado, so, can you ensure that [08:41] Missing: person_changetimezone [08:41] Missing: person_key [08:41] are both nuked from our tree in 10 minutes? kthxbye [08:41] Missing: poll_options [08:41] that's another one [08:41] the first two ones don't exist anylonger [08:41] the third one I just added the pagetitle [08:42] sure [08:42] nuke them away [08:42] rs=kiko [08:43] I thought they were already nuked [08:43] err, foaf searching's kind of painful [08:44] salgado, they are still in templates/ [08:44] is it unreasonable to expect searching for 'freese' to DTRT [08:44] i.e. find this guy: https://launchpad.net/people/bddebian [08:44] kiko, I just removed them. [08:45] thanks [08:46] elmo, you did a search for 'freese' and got this guy as result? [08:47] salgado: no, if I search for freese I don't get him, if I search for defreese (his full surname) I do [08:48] but I'd like partial matches of surnames to be returned too [08:49] elmo, the problem is in our full text indexes. look what it does for defreese: [08:49] launchpad_dev=# select ftq('defreese'); [08:49] ftq [08:49] ----------- [08:49] 'defrees' [08:49] (1 row) [08:49] elmo, that's a fault of our FTI searches. [08:50] so, if you search for defrees you won't get anything either === Seveas` [n=seveas@seveas.demon.nl] has joined #launchpad [08:50] bah, there must be something wrong [08:54] <\sh> sabdfl: ping can I talk to you for 5 mins? [08:56] kiko: how did your work on the landing pages go? [08:57] randomly, I keep meaning to mention to this to people [08:57] https://chinstrap.ubuntu.com/~scott/keybuk-launchpad_1.2_all.deb [08:58] drags in the launchpad deps and sets up postgresql for you [08:58] \sh: sure, privmsg? [08:58] mpt: ping [08:58] <\sh> sabdfl: yes [08:59] mdz, it went well, no 404s any longer right? === SnakeBite [n=SnakeBit@84.242.143.64] has joined #launchpad [09:10] Merge to rocketfuel@canonical.com/launchpad--devel--0: [r=stevea] Fix buildduration IntervalCol value in builddmaster (patch-2383: celso.providelo@canonical.com) [09:11] sabdfl: Just so you know, I've got IBugTask.target returning the correct target in my branch now too (D, DR, DSP, DRSP, P). [09:11] (documented in bugtask.txt) [09:12] I created a DistroSourcePackage on this branch [09:12] kiko: no 404s, but the text still looks like an error [09:13] mdz, hey, you said the least was a 200ok [09:14] kiko: indeed I did [09:14] mpt: In what kind of thing should I put the "This bug has *not yet been reported* ..." message? If you tell me what it should look like, I can possibly do the CSS. [09:14] stevea and I talked about the text; I guess I assumed that was trivial [09:15] it is actually trivial if not for rollout issues [09:15] kiko took a different approach [09:15] the "coming soon" page is displayed if there is no such package in launchpad [09:15] lifeless, ping? [09:16] the real "get help" page is displayed if there is a package [09:16] so, you're seeing the "real" page [09:16] pong [09:16] lifeless, save me, privmsg [09:19] liiiifeless === kiko nudges lifeless [09:26] niemeyer: where did you note down the breezy compilation failure for zope? === Mez [n=Mez@cpc4-lich4-3-0-cust247.brhm.cable.ntl.com] has joined #launchpad [09:26] Keybuk: I've sent the patch to the launchpad list. [09:26] Keybuk: Do you want it? [09:27] ah yes, that's where I saw it === Keybuk was looking on the wiki [09:27] s'ok, found it [09:29] ok dudes, time to leave [09:29] see you in a week or so [09:30] W00T [09:30] just wrote a general form processor [09:31] thank god [09:31] no more faking addforms [09:31] nosirree [09:31] those days are OVER [09:34] kiko: do we have working langpacks? [09:34] kiko: is mpt around? [09:35] sabdfl, mpt should be arriving any minute now from classes [09:35] as for langpacks [09:35] all known whitespace issues have been fixed [09:35] this took us 3 iterations to get right [09:36] the migration script is running on staging and will be finished tonight === dePOLL is now known as depoll [09:36] most known export issues that were blockers are now fixed [09:36] I'm generating a language pack based on carlos' branch [09:37] and will compare against the official packs later to assert we've got most issues nailed down [09:37] I must say there are lots of little corner cases that will need to be shaked down over time [09:37] so "working langpack" is not a binary thing [09:37] the majority of files now does export successfully, however. [09:38] what classes are mpt taking? [09:38] :q [09:38] damn focus [09:38] ok, thanks for the status update [09:39] sabdfl, it's thursday, just basic pt_BR classes [09:39] he more than replaces the time [09:43] kiko: k thanks [09:43] bradb: any reason that malone email does not say who made the change? [09:43] sabdfl: It says it in the From: line. [09:43] i'd like to make that more explicit [09:44] sabdfl: The plan was to change those headers anyway, so that explicitness could happen at the same time. [09:44] (as per what Keybuk suggested, etc.) [09:44] separate issue [09:44] is it going to break a lot of tests? [09:45] sabdfl: If you change something in the body, it'll break quite a bit of bugnotification-email.txt. [09:45] Should be quick to fix. Other than that, I don't think much else should break from a change of the body content in the email. [09:46] ok [09:46] i think i will just reformat that mail substantially, if i get the time [09:47] ok [09:48] - - Software Freedom Day '05, 00:30 !!! [09:49] ...sorry for that [09:52] Virtuall: bez problem [09:53] shto ti xotjish znaet? [09:53] znaesh, perhaps [09:54] , , Ubuntu Team Latvia . . [09:55] sabdfl, ? [09:55] :) [09:55] ok, that's harder to translate [09:55] all i got was ?????????????? ???????? [09:55] I got some funky norwegian [10:04] sabdfl: also, just so you know, i'm changing all the bug actions portlet links to be +addfoo (unless you have any objections) [10:05] +addfoo? [10:05] :D [10:05] damnit :( [10:05] +addcve etc? [10:05] sure [10:05] anyway, forget it :) [10:05] sabdfl: yeah [10:07] bradb: do you know if the IBugAttachment schema will magically give me the upload-a-binary-object-fu? [10:07] the Object schema type is not one i've seen before [10:08] sabdfl: no idea. BjornT might know, but I guess he's not around [10:09] Merge to rocketfuel@canonical.com/launchpad--devel--0: r=bjornt various menus and facet-assignment fixes. (patch-2384: steve.alexander@canonical.com, mpt@canonical.com) [10:10] an Object field type specifies an attribute that contains some object that provides the schema specified in the field [10:10] so, you can use it to say that the attribute 'target' must be an IBugTarget [10:10] for example [10:10] ah, nice === Lovechild [n=dnielsen@0x50c71cc7.adsl-fixed.tele.dk] has joined #launchpad === rw` [n=user@200.128.80.250] has joined #launchpad [10:13] that is nice [10:14] if you want an "upload a file" widget [10:14] sabdfl: I think you might want a Bytes field, btw. But I'm only guessing from looking at IBugAttachmentAddForm [10:14] you'll need to use a Bytes field [10:16] sabdfl: nice that you included a test of facets in xx-ticket-01-overview.txt [10:20] bradb: yes, i found that too. thanks. [10:21] SteveA: i have a nice simple "process a form" now [10:21] cool [10:21] all you do is declare the jordi, here? [10:22] kiko: about to leave here soon [10:23] kiko, lifeless, still mirroring [10:24] lifeless, almost there [10:24] the base-0 mirror is big [10:24] you can mirror with --no-cachedrevs [10:25] ah? [10:25] salgado? [10:26] is it worth stop the mirroring now to use --no-cachedrevs? the base-0 seems to be mirrored already [10:26] if the base-0 is done, dont stop [10:29] okay, finished. guilherme.salgado@canonical.com/launchpad--production--1.31 [10:31] lifeless, DO IT [10:35] SteveA: help [10:35] help me rhonda, help help me rhonda [10:35] i'm trying to use an editform, with a schema that is a subset of an IPerson [10:36] subset, in the sense that it has 3 things with the same names as things in IPerson [10:36] but they are different [10:36] TypeError: ('Could not adapt', , ) [10:36] have you registered an adapter ? [10:36] do i need to do something special to be able to do that? [10:36] lifeless: where do i do that? [10:37] yes, either the object needs to declare it implements the interface, or you need to write the code that uses an IPerson to implement an IPersonHomePageEditSchema, and then tell launchpad about that [10:37] sabdfl: If you override .create in your view, you can get around having to write an adapter [10:37] so the first question is, does person actually implement IPersonHomePageEditSchema already ? [10:38] lifeless: i think so, yes [10:38] lifeless: in the sense that there are three things with the same name in IPerson [10:38] in the one, they are Bytes [10:38] inthe other, Object's [10:39] sabdfl: in which case, I think the patah of least resistance (but maybe not good zope style - your reviewer will pick up this and check in more detail) is to add IPersonHomePageEditSchema to the interface list in Person [10:39] i.e. implements(IPerson) [10:39] (s/create/createAndAdd/, that is) [10:39] implements(IPersonHomePageEditSchema) [10:39] bradb: oh ? [10:40] the base add views try to adapt the context class to the schema in createAndAdd [10:40] ah, so by overriding that you can choose the used schema ? [10:41] seems like routing-around-dmg to me [10:42] right, even just overriding .create works for me [10:42] (I just did it for +addcve, so that I don't have to write an adapter from IBugTask to ICVERef.) [10:43] in sabdfl's case, this might be different though :/ I think the thing that is returned from .create has to provide the interface named in schema="..." [10:44] in my case i return an ICVERef from .create, so it provides the schema="...ICVERef" interface. [10:44] bradb: so you did write an adapter;0 [10:44] with a schema that was created to render one specific form them, you pretty much have to bend over [10:44] lifeless: no === eruin [n=eruin@unaffiliated/eruin] has joined #launchpad [10:45] the last line of my .create is: [10:45] re: why aren't there templates for, say, synaptic in rosetta? [10:45] (well, lines): [10:45] return getUtility(ICVERefSet).createCVERef( [10:45] bug=bugtask.bug, cveref=form_values['cveref'] , [10:45] cvestate=form_values['cvestate'] , [10:45] title=form_values['title'] , [10:45] owner=getUtility(ILaunchBag).user) [10:45] bradb: thats how I would have written the adapter ;0 [10:45] i.e. it's something that already provides the interface that was used as the schema="..." for my form [10:46] eruin: good question, i don't know [10:46] bradb: though it may not be easy withou tthe form state variables [10:46] carlos just left on holiday [10:46] kiko: ? [10:46] I'd love to help translating it and others fully in time for breezy [10:47] what hours does jordi keep sabdfl do you know? [10:47] insert punctuation in that sentence as necessary [10:47] knowing how when a particular app isn't on rosetta is.. confusing at best ;) [10:48] jordi - pretty normal east-spain hours [10:48] (IIRC) [10:48] jordi: ping ^^^ [10:48] he has a day job though right? [10:49] anyhow is rosetta@ubuntu.com the correct address for him? [10:51] sabdfl: pong [10:52] bradb:

would do [10:52]

This bug is not recorded as occurring in {context}. ( Yes It Does )

[10:52] or something like that [10:53] mpt: Hm, it doesn't seem to look ideal without some kind of emphasis (particularly if there's already other portal messages being shown above it.) [10:54] bradb: Well, then we come back to my old

Status in {context}

and

Status elsewhere

idea [10:55] hm. ok, i'll let this one bake a bit longer. working on other things atm (+addfoo for all the bug-related object add pages) [10:56] I wonder if there'll be a Malone page test that I *won't* touch in this patch. [10:57] Merge to rocketfuel@canonical.com/launchpad--production--1.31: production cherrypick from salgado (patch-5: guilherme.salgado@canonical.com) [10:57] sabdfl? [10:58] what did I do now [10:58] kiko is that better? === BjornT [n=bjorn@82-135-221-189.ip.takas.lt] has joined #launchpad [10:59] kiko: I think he might have been forwarding on this question to you, in carlos' absence: 16:45 < eruin> re: why aren't there templates for, say, synaptic in rosetta? [11:00] lifeless, uhm, well, almost. [11:01] kiko: I'm so out of it, its not funny. [11:02] lifeless, I'll have stuart fix it, no worries. [11:02] what needs doing now ? [11:02] thanks. [11:02] ok. gnight [11:02] just too much going on at once [11:02] sabdfl: gnight. see you monday. [11:02] kiko: do you need me to roll it back ? === cprov [n=cprov@217.205.109.249] has joined #launchpad [11:02] kiko: or is it an improvement as it stands ? [11:03] lifeless, rolling it back will be ideal :-( [11:03] doing so now [11:03] mpt has a pair of pages which will save us till next week, and salgado/stuart can get it up [11:04] done === lifeless crashes [11:08] kiko: oi! [11:08] kiko: Tudo bem? [11:15] asmodai, t tudo daquele jeito [11:15] kiko: :) [11:15] Good to see you alive and kicking ;) [11:17] asmodai, I'm kicking as hard as we can [11:17] kiko: That much work? [11:17] i'd be lying if I said yes [11:17] more than that [11:18] THAT MUCH [11:18] :| [11:18] Too much? [11:18] perhaps :) [11:19] *smiles* === asmodai is about to get hired by a Dutch uni. Part of work will be pgsql/dspace hacking [11:20] jordi: ping launchpad-integration [11:29] Merge to rocketfuel@canonical.com/launchpad--devel--0: [trivial] Fix missing pagetitles, improve our basic test coverage for those pages, and add utilities/check-templates.sh which verifies if all templates are registered and properly pagetitled. Only one page title missing, but that's Salgado's fault (patch-2385: christian.reis@canonical.com) [11:33] sabdfl, BjornT: so, just a heads up then (to hopefully avoid potential conflicts) that all the bug-related object add pages are now officially +addcve, +addattachment, +addurl and +addwatch on my branch [11:33] bradb: eta to landing? [11:33] and i blew way the factories for those things, using the equiv *Set now [11:33] sabdfl: another couple of days, probably [11:33] s/couple/few/ considering code review and such [11:36] bradb: i'm starting to prefer a slightly different approach now [11:36] where you have something that is always associated with something else [11:36] instead of a *Set, just put the add on the thing that its linked to [11:36] so for example [11:37] my new subscription code does not have a TicketSubscriptionSet.new(ticket, person) [11:37] it has Ticket.subscribe(person) [11:37] much more natural [11:37] right [11:39] I'm probably best to save that refactoring for the firefighting-merge after this one lands. It will be a monster. [11:39] (or maybe even the merge after that) [11:42] I changed the bug page to highlight the current task too. I think it looks a heck of a lot better that way. [11:46] sabdfl: Is the sprint happening at Fieldwave's office (Axiscross House)? [11:47] niemeyer: yes [11:47] bradb: i like the idea of highlighting the current task, if we know it [11:48] sabdfl: we *always* know it now :) [11:48] even /malone/bugs/1 redirects to context. no escaping it! [11:48] sounds good. which context [11:49] sabdfl: the first one it finds. first == the bugtask with the smallest id [11:49] bradb: ok === cprov [n=cprov@217.205.109.249] has joined #launchpad === bradb fixed that goofy duplicate names bug in the maintainers portlet too [11:58] no user deserves to see that