=== matsubara is now known as matsubara-afk [00:55] mwhudson: https://code.edge.launchpad.net/~thumper/launchpad/remove-thumper-from-sample-data/+merge/22189 diff still pending [00:57] thumper: done [00:58] thumper/mwhudson: could you take a look at https://code.edge.launchpad.net/~james-w/launchpad/code-imports-for-source-packages/+merge/21821 please? [00:58] james_w: after lunch ok? [00:58] sure [00:58] cool [00:59] I meant to do it as two branches, but got carried away it seems [00:59] I can split it up if you like [00:59] doesn't seem too large [01:02] I'm going to do it, as it makes the tests a bit clearer as to what they are doing === wgrant changed the topic of #launchpad-reviews to: on call:|| reviewing: - || queue: [wgrant] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews [02:13] hi mwhudson [02:14] james_w: hello [02:14] mwhudson: do you have time to look now? [02:14] james_w: i guess you'd like me to look at that branch? [02:14] yeah [02:14] james_w: can you paste the link again? [02:14] if not, then I'll sign off and we can do this another time [02:14] sure [02:14] resume didn't, again [02:14] thanks [02:14] heh [02:15] https://code.edge.launchpad.net/~james-w/launchpad/new-code-import-method-on-branchtarget/+merge/22190 [02:15] https://code.edge.launchpad.net/~james-w/launchpad/code-imports-for-source-packages/+merge/22191 [02:15] the first is another refactoring-type branch, and then the second flips the switch and adds tests for source package imports [02:15] james_w: is there an order to them? [02:15] ah ok [02:16] james_w: the diff for https://code.edge.launchpad.net/~james-w/launchpad/new-code-import-method-on-branchtarget/+merge/22190 has conflicts [02:16] I'm not sure that AssertionError is the right error to be raising [02:17] um [02:17] yeah, I don't see them [02:18] or at least the mp page claims it has conflicts [02:18] that's a bit odd [02:18] I think it's something to do with the prerequisite branches [02:22] yeah, a prerequisite branch has conflicts with devel, fixing that now [02:27] james_w: it all looks good, apart from a few details on whitespace of all things [02:27] great [02:33] james_w: balls, reviewed the wrong proposal [02:34] oops [02:34] conflicts fixed [02:39] james_w: anyway, both branches reviewed [02:40] thanks mwhudson. Both fixed as well. [02:41] james_w: cool [02:41] james_w: can you land these yourself yet? [02:41] I cannot [02:42] now I must depart [02:42] thanks for your help [02:42] bye [09:08] I'm guessing that there will be no OCR today, since Bugs is sprinting? === wgrant changed the topic of #launchpad-reviews to: on call: - || reviewing: - || queue: [wgrant,wgrant] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews === matsubara-afk is now known as matsubara [12:45] wgrant, I see only one branch from you on https://code.edge.launchpad.net/launchpad-project/+activereviews [12:45] is the topic here correct, do you have 2 branches for review? === salgado changed the topic of #launchpad-reviews to: on call: salgado || reviewing: - || queue: [wgrant,wgrant] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews === danilo_ is now known as danilos === mrevell is now known as mrevell-lunch [13:59] * bigjools waves at salgado [14:00] howdy bigjools! [14:01] salgado: hey dude, how's it going? [14:01] I've got a nice branch for you :) [14:01] you soyuz people always do. :P [14:02] this one's pretty easy as soyuz goes [14:02] :) [14:03] popped you on the list of reviewers, you should get some email [14:03] cool. will get to it in a minute. just need to submit one of my own branches to ec2 [14:03] I should expand the MP description really === salgado changed the topic of #launchpad-reviews to: on call: salgado || reviewing: bigjools || queue: [wgrant,wgrant] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews [14:03] thanks salgado [14:22] * bigjools needs food, bbiab === mrevell-lunch is now known as mrevell === salgado changed the topic of #launchpad-reviews to: on call: salgado || reviewing: - || queue: [wgrant,wgrant] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews === matsubara is now known as matsubara-lunch === salgado is now known as salgado-lunch === deryck is now known as deryck[lunch] === sinzui changed the topic of #launchpad-reviews to: on call: salgado || reviewing: - || queue: [wgrant,wgrant, sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews [16:32] EdwinGrubbs: can you review https://code.launchpad.net/~sinzui/launchpad/do-not-release/+merge/22239 for me. We need this landed today, or we must ask for an RC next week [16:34] henninge: not good English: "# Not matching format specifiers will not be validated." [16:34] "Mismatched" would work, or "non-matching." [16:36] henninge: about "# Failing is usually propagated by an exception."—that'd be "Failure." And... when does it not cause an exception? [16:37] henninge: do you know it's safe to unicode(message_or_exception) in the GettextValidationError constructor? You might trigger an encoding error right there. May be safer to use repr(message_or_exception) instead. [16:38] henninge: in the validate_translation docstring, please backquote the reference to GettextValidationError [16:39] henninge: [16:39] 779+ elif len(translation): [16:39] 780+ msg.set_msgstr(translation[0]) [16:39] len(translation) > 0 [16:39] and, our coding standards require an else. [16:40] henninge: in "# Hide gettextpo.error in GettextValidationError."—"hide" doesn't sound right... how about "wrap"? [16:41] henninge: finally, "ignore_errors" doesn't seem to mean "ignore errors," but select between exceptions and a bool return code to indicate validation failure. Assuming this is not easy to clean up, can you come up with a better name? [16:43] sinzui: sure, I'll review that now. === matsubara-lunch is now known as matsubara === gary_poster is now known as gary-lunch === salgado-lunch is now known as salgado [17:23] salgado: hi there [17:24] nearly done with the branch changes, but I'm struggling to get cancel_url and next_url working, it's completely ignoring them, any advice? [17:24] bigjools, that's weird. is it redirecting somewhere or nowhere? [17:26] salgado: nowhere [17:26] salgado: current diff: http://pastebin.ubuntu.com/401913/ [17:27] + @property [17:27] + def next_url(self): [17:27] + # We redirect back to the PPA owner's profile page on a [17:27] + # successful action. [17:27] + canonical_url(self.context.owner) [17:27] bigjools, maybe if you return the value? [17:27] ;) [17:28] fuck sake :) [17:28] it's friday ok? [17:30] salgado: so with those changes how's it looking? [17:30] bigjools, you know what, I've made this same mistake a couple weeks ago and it took me quite a while to figure out what was wrong. maybe I caught your mistake so quickly because of that [17:31] salgado: it's so easy to do, I really wish Python would warn if you don't return stuff from a @property [17:31] defaulting to None is crap [17:31] indeed [17:32] bigjools, you can easily teach pyflakes to do that, I think [17:32] salgado: how? [17:33] * sinzui has a custome pyflakes + pep8 linter and it does not report that case [17:33] sinzui, I might be wrong [17:33] pep8 could be taught though [17:34] but I'd expect it'd be possible to hack pyflakes to check for @properties that don't return [17:34] well, I think it would be easier to teach pep8 that pyflakes [17:35] if not archive.private: [17:35] link.enabled = False [17:35] - if archive.status in ( [17:35] - ArchiveStatus.DELETING, ArchiveStatus.DELETED): [17:35] + if not archive.is_active: [17:35] link.enabled = False [17:35] bigjools, care to combine those two if blocks? [17:36] salgado: right yep === gary-lunch is now known as gary_poster [18:02] salgado: I have to finish now, I'll pop back later. I'm not landing this branch this cycle anyway, I just need to be ready to land it at the start of the next so it can get some beta testing. [18:02] bigjools, cool. I've just approved it, btw [18:03] salgado: ok thanks duderino [18:03] you're welcome [18:04] sinzui, is the one you have queued the one that EdwinGrubbs is reviewing? [18:04] rockstar: do you want to take a final look at https://code.edge.launchpad.net/~julian-edwards/launchpad/ppa-deletion-ui/+merge/21925 ? [18:04] (ppa deletion) [18:04] salgado: I hope so [18:04] * bigjools runs, goodnight all [18:05] sinzui: r=me [18:06] EdwinGrubbs: thanks? did you have any concerns about the filtering of the obsolete/old packages? [18:10] EdwinGrubbs: I think I may want to adjust to sorting of Product.sourcepackages next month. The order is alphabetical. It kinds of works, but If the primary use case is listing important packages, I think I want to switch to newest first. We will have to change this eventually because we as half way through the alphabet [18:28] sinzui: well, I saw that the test determined obsolete by whether there was a spph. I don't know if it would make more sense to check the distroseries status. [18:29] EdwinGrubbs: the series status and is the cause of the no currentrelease. We removed the release. This will fix the old packages that are listed on bzr page [18:30] s/and is/is/ [18:31] sinzui: what do you mean by "we removed the release". [18:31] EdwinGrubbs: I took the two properties from the branch that lets users say the project is not packaged. I can fix the sort order when I land that branch. I still am not certain the sort order is wrong. I just think the order can have surprises. [18:31] EdwinGrubbs: We purge the old packages when the series goes obsolete [18:32] EdwinGrubbs: looking at https://edge.launchpad.net/gedit, you can see that every package that is missing a currentrelease is also an obsolete series [18:36] sinzui: I think you are right that sorting by date would be better than the current sorting by name. [18:36] right, hardy and hoary look wrong [18:37] That comes from the model. Since it appears to be fore display purposes, I think I will try to change that in my next branch [18:49] james_w: switching here because I suppose this is the proper thing to do. :-) [18:49] I guess :-) [18:53] james_w: Did you consider AssertionError over ValueError? I was gung ho for AssertionError, but then started convincing myself of ValueError. I still lean towards AssertionError...ooh, no I have an idea I like better, maybe. One sec, looking up. [18:55] I don't really mind what the error type is [19:05] OK, james_w, here is the trivia I'm struggling with. Normally, the right thing to do in this case is to write a function (I'm going to suggest that we switch the class to a function anyway) that returns None. That behaves properly with standard Zope calls: getMultiAdapter will raise a ComponentLookupError, and queryMultiAdapter will return None or the provided default. [19:05] By explicitly raising an exception we're breaking the pattern. Raising ComponentLookupError (what I was considering) is not appropriate here because that's the responsibility of something higher up. And the reason we are doing this is to help the user figure out what they did wrong. In would be nice if the zope machinery had a spelling for that, but it doesn't. [19:05] So, I think an AssertionError is the right thing to do for our intentions: we're doing this to help a poor developer debug and fix their problems, which is the domain of an AssertionError. A ValueError is an attempt to raise a "real" error, and would be the wrong "real" error (ComponentLookupError is the right error, if we get one at all). [19:05] So with all that, I would suggest changing the ChoiceErrorMarshaller class to something like this: [19:05] def choiceMarshallerError(field, request, vocabulary): [19:05] # We don't support marshalling a normal Choice field with a [19:05] # SQLObjectVocabularyBase-based vocabulary. [19:05] # Normally for this kind of use case, one returns None and [19:05] # lets the Zope machinery alert the user that the lookup has gone wrong. [19:05] # However, we want to be more helpful, so we make an assertion, [19:05] # with a comment on how to make things better. [19:05] assert False, (...your message...) [19:06] ok [19:06] james_w: other than that, r=gary. You cool with that? [19:07] yeah, let me make the changes so that you can confirm [19:07] ok cool [19:15] gary_poster: please re-check [19:15] ack james_w [19:17] james_w: +1. I really would like (something like) the comment I gave to be there too. People who know the Zope pattern will appreciate reading what's going on (like me, when I've forgotten all about this!) [19:17] oh [19:18] Other than that, that's what I had in mind. I need to step out to the bank. Would you like me to give you a merge-conditional approve so you can proceed without me? [19:18] done [19:19] I can't merge anyway, so there's no rush [19:19] heh, ok === EdwinGrubbs is now known as Edwin-lunch [19:22] you might not have pushed the branch, James, but I gave a merge-conditional [19:24] it was just waiting for the puller, it's there now === gary_poster is now known as gary-afk === gary-afk is now known as gary_poster === gary_poster is now known as gary-afk [20:05] jtv: http://paste.ubuntu.com/401997/ === sinzui changed the topic of #launchpad-reviews to: on call: salgado || reviewing: - || queue: [wgrant,wgrant] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews === gary-afk is now known as gary_poster === matsubara is now known as matsubara-afk === Edwin-lunch is now known as EdwinGrubbs === adiroiban changed the topic of #launchpad-reviews to: on call: - || reviewing: - || queue: [wgrant,wgrant,adiroiban(bug-548999)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews