/srv/irclogs.ubuntu.com/2010/03/26/#launchpad-reviews.txt

=== matsubara is now known as matsubara-afk
thumpermwhudson: https://code.edge.launchpad.net/~thumper/launchpad/remove-thumper-from-sample-data/+merge/22189 diff still pending00:55
mwhudsonthumper: done00:57
james_wthumper/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
mwhudsonjames_w: after lunch ok?00:58
james_wsure00:58
mwhudsoncool00:58
james_wI meant to do it as two branches, but got carried away it seems00:59
james_wI can split it up if you like00:59
mwhudsondoesn't seem too large00:59
james_wI'm going to do it, as it makes the tests a bit clearer as to what they are doing01:02
=== 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
james_whi mwhudson02:13
mwhudsonjames_w: hello02:14
james_wmwhudson: do you have time to look now?02:14
mwhudsonjames_w: i guess you'd like me to look at that branch?02:14
mwhudsonyeah02:14
mwhudsonjames_w: can you paste the link again?02:14
james_wif not, then I'll sign off and we can do this another time02:14
james_wsure02:14
mwhudsonresume didn't, again02:14
james_wthanks02:14
james_wheh02:14
james_whttps://code.edge.launchpad.net/~james-w/launchpad/new-code-import-method-on-branchtarget/+merge/2219002:15
james_whttps://code.edge.launchpad.net/~james-w/launchpad/code-imports-for-source-packages/+merge/2219102:15
james_wthe first is another refactoring-type branch, and then the second flips the switch and adds tests for source package imports02:15
mwhudsonjames_w: is there an order to them?02:15
mwhudsonah ok02:15
mwhudsonjames_w: the diff for https://code.edge.launchpad.net/~james-w/launchpad/new-code-import-method-on-branchtarget/+merge/22190 has conflicts02:16
james_wI'm not sure that AssertionError is the right error to be raising02:16
mwhudsonum02:17
james_wyeah, I don't see them02:17
mwhudsonor at least the mp page claims it has conflicts02:18
mwhudsonthat's a bit odd02:18
james_wI think it's something to do with the prerequisite branches02:18
james_wyeah, a prerequisite branch has conflicts with devel, fixing that now02:22
mwhudsonjames_w: it all looks good, apart from a few details on whitespace of all things02:27
james_wgreat02:27
mwhudsonjames_w: balls, reviewed the wrong proposal02:33
james_woops02:34
james_wconflicts fixed02:34
mwhudsonjames_w: anyway, both branches reviewed02:39
james_wthanks mwhudson. Both fixed as well.02:40
mwhudsonjames_w: cool02:41
mwhudsonjames_w: can you land these yourself yet?02:41
james_wI cannot02:41
james_wnow I must depart02:42
james_wthanks for your help02:42
mwhudsonbye02:42
wgrantI'm guessing that there will be no OCR today, since Bugs is sprinting?09:08
=== 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
salgadowgrant, I see only one branch from you on https://code.edge.launchpad.net/launchpad-project/+activereviews12:45
salgadois the topic here correct, do you have 2 branches for review?12:45
=== 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
* bigjools waves at salgado13:59
salgadohowdy bigjools!14:00
bigjoolssalgado: hey dude, how's it going?14:01
bigjoolsI've got a nice branch for you :)14:01
salgadoyou soyuz people always do. :P14:01
bigjoolsthis one's pretty easy as soyuz goes14:02
salgado:)14:02
bigjoolspopped you on the list of reviewers, you should get some email14:03
salgadocool.  will get to it in a minute.  just need to submit one of my own branches to ec214:03
bigjoolsI should expand the MP description really14:03
=== 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
bigjoolsthanks salgado14:03
* bigjools needs food, bbiab14:22
=== 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
sinzuiEdwinGrubbs: 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 week16:32
jtvhenninge: not good English: "# Not matching format specifiers will not be validated."16:34
jtv"Mismatched" would work, or "non-matching."16:34
jtvhenninge: about "# Failing is usually propagated by an exception."—that'd be "Failure."  And... when does it not cause an exception?16:36
jtvhenninge: 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:37
jtvhenninge: in the validate_translation docstring, please backquote the reference to GettextValidationError16:38
jtvhenninge:16:39
jtv779+    elif len(translation):16:39
jtv780+        msg.set_msgstr(translation[0])16:39
jtvlen(translation) > 016:39
jtvand, our coding standards require an else.16:39
jtvhenninge: in "# Hide gettextpo.error in GettextValidationError."—"hide" doesn't sound right... how about "wrap"?16:40
jtvhenninge: 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:41
EdwinGrubbssinzui: sure, I'll review that now.16:43
=== matsubara-lunch is now known as matsubara
=== gary_poster is now known as gary-lunch
=== salgado-lunch is now known as salgado
bigjoolssalgado: hi there17:23
bigjoolsnearly 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
salgadobigjools, that's weird. is it redirecting somewhere or nowhere?17:24
bigjoolssalgado: nowhere17:26
bigjoolssalgado: current diff: http://pastebin.ubuntu.com/401913/17:26
salgado+    @property17:27
salgado+    def next_url(self):17:27
salgado+        # We redirect back to the PPA owner's profile page on a17:27
salgado+        # successful action.17:27
salgado+        canonical_url(self.context.owner)17:27
salgadobigjools, maybe if you return the value?17:27
salgado;)17:27
bigjoolsfuck sake :)17:28
bigjoolsit's friday ok?17:28
bigjoolssalgado: so with those changes how's it looking?17:30
salgadobigjools, 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 that17:30
bigjoolssalgado: it's so easy to do, I really wish Python would warn if you don't return stuff from a @property17:31
bigjoolsdefaulting to None is crap17:31
salgadoindeed17:31
salgadobigjools, you can easily teach pyflakes to do that, I think17:32
sinzuisalgado: how?17:32
* sinzui has a custome pyflakes + pep8 linter and it does not report that case17:33
salgadosinzui, I might be wrong17:33
sinzuipep8 could be taught though17:33
salgadobut I'd expect it'd be possible to hack pyflakes to check for @properties that don't return17:34
sinzuiwell, I think it would be easier to teach pep8 that pyflakes17:34
salgado         if not archive.private:17:35
salgado             link.enabled = False17:35
salgado-        if archive.status in (17:35
salgado-            ArchiveStatus.DELETING, ArchiveStatus.DELETED):17:35
salgado+        if not archive.is_active:17:35
salgado             link.enabled = False17:35
salgadobigjools, care to combine those two if blocks?17:35
bigjoolssalgado: right yep17:36
=== gary-lunch is now known as gary_poster
bigjoolssalgado: 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
salgadobigjools, cool.  I've just approved it, btw18:02
bigjoolssalgado: ok thanks duderino18:03
salgadoyou're welcome18:03
salgadosinzui, is the one you have queued the one that EdwinGrubbs is reviewing?18:04
bigjoolsrockstar: do you want to take a final look at https://code.edge.launchpad.net/~julian-edwards/launchpad/ppa-deletion-ui/+merge/21925 ?18:04
bigjools(ppa deletion)18:04
sinzuisalgado: I hope so18:04
* bigjools runs, goodnight all18:04
EdwinGrubbssinzui: r=me18:05
sinzuiEdwinGrubbs: thanks? did you have any concerns about the filtering of the obsolete/old packages?18:06
sinzuiEdwinGrubbs: 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 alphabet18:10
EdwinGrubbssinzui: 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:28
sinzuiEdwinGrubbs: 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 page18:29
sinzuis/and is/is/18:30
EdwinGrubbssinzui: what do you mean by "we removed the release".18:31
sinzuiEdwinGrubbs: 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
sinzuiEdwinGrubbs: We purge the old packages when the series goes obsolete18:31
sinzuiEdwinGrubbs: looking at https://edge.launchpad.net/gedit, you can see that every package that is missing a currentrelease is also an obsolete series18:32
EdwinGrubbssinzui: I think you are right that sorting by date would be better than the current sorting by name.18:36
sinzuiright, hardy and hoary look wrong18:36
sinzuiThat comes from the model. Since it appears to be fore display purposes, I think I will try to change that in my next branch18:37
gary_posterjames_w: switching here because I suppose this is the proper thing to do. :-)18:49
james_wI guess :-)18:49
gary_posterjames_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:53
james_wI don't really mind what the error type is18:55
gary_posterOK, 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
gary_posterBy 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
gary_posterSo, 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
gary_posterSo with all that, I would suggest changing the ChoiceErrorMarshaller class to something like this:19:05
gary_posterdef choiceMarshallerError(field, request, vocabulary):19:05
gary_poster    # We don't support marshalling a normal Choice field with a19:05
gary_poster    # SQLObjectVocabularyBase-based vocabulary.19:05
gary_poster    # Normally for this kind of use case, one returns None and19:05
gary_poster    # lets the Zope machinery alert the user that the lookup has gone wrong.19:05
gary_poster    # However, we want to be more helpful, so we make an assertion,19:05
gary_poster    # with a comment on how to make things better.19:05
gary_poster    assert False, (...your message...)19:05
james_wok19:06
gary_posterjames_w: other than that, r=gary.  You cool with that?19:06
james_wyeah, let me make the changes so that you can confirm19:07
gary_posterok cool19:07
james_wgary_poster: please re-check19:15
gary_posterack james_w19:15
gary_posterjames_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
james_woh19:17
gary_posterOther 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
james_wdone19:18
james_wI can't merge anyway, so there's no rush19:19
gary_posterheh, ok19:19
=== EdwinGrubbs is now known as Edwin-lunch
gary_posteryou might not have pushed the branch, James, but I gave a merge-conditional19:22
james_wit was just waiting for the puller, it's there now19:24
=== gary_poster is now known as gary-afk
=== gary-afk is now known as gary_poster
=== gary_poster is now known as gary-afk
henningejtv: http://paste.ubuntu.com/401997/20:05
=== 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

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