/srv/irclogs.ubuntu.com/2010/04/29/#launchpad-reviews.txt

jpdsEdwinGrubbs: I have https://code.launchpad.net/~jpds/launchpad/fix-distromirrorstatus-colours/+merge/24378 if you're still around.01:09
EdwinGrubbsjpds: what's a url where I can see the color?01:12
jpdsEdwinGrubbs: Compare: https://edge.launchpad.net/ubuntu/+archivemirrors and https://launchpad.net/ubuntu/+archivemirrors01:12
EdwinGrubbsjpds: r=me01:15
=== EdwinGrubbs changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
jpdsEdwinGrubbs: Cool, can you please send it to PQM? :)01:15
EdwinGrubbsjpds: sure01:16
thumperhello friendly reviewer: https://code.edge.launchpad.net/~thumper/launchpad/code-email-permissions/+merge/2439003:50
thumpermwhudson: ^^ it is very small03:53
mwhudsonthumper: looking03:53
mwhudsonthumper: done03:55
thumperta03:55
thumpermwhudson: how about:04:29
thumper        Permission to mark a merge proposal as approved checks launchpad.Edit04:29
thumper        of the target branch, or membership of the review team on the target04:29
thumper        branch.  For import branches launchpad.Edit also checks the registrant04:29
thumper        of the code import if there is one, and membership of vcs-imports.  So04:29
thumper        if someone is attempting to review something on an import branch, but04:29
thumper        they don't have launchpad.Edit but are a member of the review team,04:29
thumper        then a check against the code import is done.04:30
mwhudsonthumper: it almost feels like it needs a diagram :-)04:30
mwhudsonthumper: but that'll do04:31
thumperit probably does04:31
=== noodles775 changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [noodles*3] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
noodles775jelmer: when you've time, I've got 3 boring refacting branches that could benefit from your eyes :)09:03
jelmernoodles775: sure, np :-)09:09
=== jelmer changed the topic of #launchpad-reviews to: On call: jelmer || reviewing: - || queue: [noodles*3] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
noodles775jtv: so regarding makeJob(), I'm not sure what the issue is? (Given that you can provide your own implementation on TranslationTemplatesBuildJob)10:04
noodles775Or you mean the issue is that I haven't done that as part of the branch.10:05
=== jelmer changed the topic of #launchpad-reviews to: On call: jelmer || reviewing: noodles || queue: [noodles*2] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
jtvnoodles775: no, just wanted to let you know that the direction could lead you to clashes with the existing code, is all10:06
jtvnoodles775: I hadn't realized that it was the intention to allow it to be a no-op10:07
noodles775It wasn't the intention to allow it to be a no-op, but derived classes *must* implement it either way.10:08
noodles775jtv: all the other derived classes are *Build objects, and so SPRecipeBuild.makeJob() returns an SPRBuildJob.10:09
noodles775In your case, you've got a BuildJob object implementing makeJob() (which is unexpected from my end), but simply returning self probably makes the most sense?10:10
jtvnoodles775: I must say I'm still getting my head around the boundary between builds and buildfarmjobs in your branch10:10
noodles775jtv: did you look at http://people.ubuntu.com/~wgrant/launchpad/buildfarm/new-build-model-again.png10:11
jtvnoodles775: only an older version I think10:12
noodles775Basically, BuildFarmJob is just the base information common to all things that run on the buildfarm. But yeah, it is confusing. It'll be helped later when we get to clean up the queue side of things (bug 570939)10:13
mupBug #570939: Replace BPJ and SPRBJ with IBuildFarmJob.job <Soyuz:Triaged> <https://launchpad.net/bugs/570939>10:13
noodles775jelmer: Just to be sure, you're looking at this one right? https://code.edge.launchpad.net/~michael.nelson/launchpad/567922-binarypackagebuild-packagebuild-3/+merge/2432710:15
noodles775jtv: let me know if you've got other questions or things I can fix up in that branch. Thanks!10:17
jelmernoodles775: no, I was looking at -210:17
jtvnoodles775: got some waiting on my other machine, hang on10:17
noodles775jelmer: That's the one that jtv has already started. Sorry for the confusion... there are still 3 branches left, and the first one is -3.10:17
jelmernoodles775: ah, ok - I'll have a look at that one then10:18
jelmernoodles775: I noticed that your branches touches on some code that I've recently changed10:18
jelmernoodles775: I've reordered some methods in buildbase.py10:18
noodles775jelmer: yeah, I expect to be resolving conflicts for the next while :)10:19
jtvnoodles775: sorry for delays... some nasty distractions10:26
noodles775jtv: no problem (just glad you're still there :)).10:26
jtvnoodles775: l.61 of the diff, lib/lp/buildmaster/interfaces/packagebuild.py: getUploaderCommand... I know this is not your fault but what does "the command to run as the uploader" mean?  That the class is all about running one particular command, and it will be run under the uploader's identity?10:27
noodles775Yes, personally i think it might be better named getUploadCommand().10:29
jelmerjtv: fwiw I'm landing a branch that removes it (we're importing the uploadprocessor directly now rather than through subprocess)10:30
noodles775Even better :)10:30
jtvyep!10:30
jtvSame for getUploadLeaf?10:31
jtvnoodles775: also, note that the slave build id has been replaced with the slave build cookie, which has (I hope) no discernible internal structure10:31
jelmerjtv: no, just getUploaderCommand and getUploadLogContent10:32
noodles775jtv: also, you're right about the makeJob - in that the docstring implies that its sole purpose is to create the services job, rather than return the 'specific_job' which links the services job. I'll update it and add a :return:.10:32
jtvnoodles775: thanks...  yes, and since the implementation wasn't in the diff...10:33
jtvjelmer: shame, because its interface entry could do with a healthy dose of violent renewal as well10:33
jelmerjtv: agreed10:33
jtvnoodles775: the docstring for getUploadLeaf I find confusing too—starting with the "Upload" part of the name.  "Build things" will be stored there...  for the purpose of upload?10:34
jtvDiscuss.10:34
noodles775jtv: yeah, as noted, I didn't even read the docstrings - I was just replicating the interface. But getUploadDirName (cf. with getUploadDir)?10:38
noodles775"Return the name of the directory where the uploaded files will be stored."?10:39
jtvnoodles775: step in the right direction, though I do think that Leaf is good for explaining the assumed directory structure.10:39
jtvnoodles775: uploaded files, or files to be uploaded?  I'm not familiar with this stuff to be sure.10:39
noodles775Right, good point. I assume it's the files to be uploaded.10:41
jtvnoodles775: might as well get some clarity into these murky depths.  :)10:42
jtvnoodles775: ready for more?10:45
noodles775jtv: yep... I'm just renaming/updating the docstrings, but can do that while we chat :)10:47
jtvnoodles775: ok... did you get the note about slave build ids not existing any more?10:47
jtvOne of the docstrings describes their usual structure, but that no longer applies10:48
jtvnoodles775: (also, that diagram you sent me still has arrows pointing the wrong way afaics)10:49
noodles775BTW: just checked, it is actually the location where the uploaded files will be stored (ie. /incoming/...)10:49
noodles775jtv: I did, but I wasn't updating the interface... but will, did you decide on a var name? buildd_cookie?10:50
jtvnoodles775: I'd say just replace "id" with "cookie."10:51
jtvIt's basically like free cookies.10:51
noodles775Done.10:51
jtvnoodles775: sorry, more urgent stuff elsewhere.  :)  Where was I?  Oh yes.  In the getUploadLeaf docstring, there's a :param now: that says "now" is the time to use.  But for what?11:10
jtvnoodles785: In the getUploadLeaf docstring, there's a :param now: that says "now" is the time to use.  But for what?11:15
noodles785jtv: "The datetime to use when constructing the leaf directory name."?11:16
=== noodles785 is now known as noodles775
jtvnoodles775: assuming that's actually true, perfect, thanks.  (And that goes to show that this has actual information value :-)11:17
noodles775jtv: should I push these changes: http://pastebin.ubuntu.com/424513/11:17
* jtv looks11:17
jtvnoodles775: is there a more formal way of saying "specific job" in the makeJob docstring?11:18
noodles775Hmm... "The object linking the services job with this build farm job."?11:18
* noodles775 looks forward to 'specific_job' dying a slow death.11:19
jtv:)11:19
jtvnoodles775: but that's saying "object," which makes it seem even vaguer somehow...11:20
jtv(Also, line 102 of that pastebin still mentions "build id."  Apart from that, it looks good to me)11:20
noodles775jtv: the XXX explains the awkward situation with the specific job (you can only see the first line in the diff).11:21
jtvnoodles775: ok11:22
jtvnoodles775: then those changes are good afaic, and I've only got two more notes about the branch as a whole.11:22
noodles775OK, those changes pushed. Shoot.11:22
jtvYou're creating class hierarchies with TestCase-derived base classes as helpers.11:23
jtvIt'd be better not to derive those from TestCase, but use them as mixins instead.11:23
* noodles775 looks11:24
jtvWhere they have setUp methods, you'll want to rename those and call them explicitly from the subclass setUp methods so as not to confuse super(), but it saves you awkwardness like deriving classes from TestCase twice (once through your own base class, once through TestClassWithFactory)11:24
jtvIt also avoids the impression that those base classes are themselves test cases.11:24
noodles775Right... doing so now.11:26
jtvIt's in a bunch of places.11:26
jtvnoodles775: client crash11:27
jtvnoodles775: turns out the test-class inheritance was my last note (the other one I had has just evaporated), so once that's cleared up, you're good to land.11:40
noodles775jtv: unfortunately, landing will be a while off yet (it's one of currently 7 branches in a pipe, dependent on a db-schema change that can't land until it's all finished). But approval is a step forward :)11:42
jtvnoodles775: whoops, I typed that on autopilot.11:44
jelmerhow is flush_database_updates() different from the other flush/commit methods?11:49
noodles775jtv: http://pastebin.ubuntu.com/424531/11:49
noodles775jelmer: it's faster than committing (just going on what I've heard), but it could be that I should be using flush instead of flush_database_updates... I can try using store.flush() instead.11:50
noodles775jelmer: store.flush() works, and since it is only needed in one test, I moved it there instead of in the setUp: http://pastebin.ubuntu.com/424538/12:03
jelmerah, great12:03
* noodles775 gets rid of the other instance of flush_database_updates in the same file.12:04
mrevellHi jelmer, may I add a text change branch to the review queue please?12:42
=== mrevell changed the topic of #launchpad-reviews to: On call: jelmer || reviewing: noodles || queue: [noodles*2, mrevell] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
mrevelljelmer, I've assumed "yes" :) The branch is here: https://code.edge.launchpad.net/~matthew.revell/launchpad/whats-new-10-04/+merge/2440812:43
mrevellI'm off for lunch for a bit12:43
=== mrevell is now known as mrevell-lunch
jelmermrevell-lunch: sorry, I was away for lunch13:11
jelmermrevell-lunch: yeah, adding something to the queue isn't a problem13:11
henningeadiroiban: did you see the test failure?13:26
adiroibanhenninge: :) yes. I fixed the one from the translations, but I have no idea why the registry windmill tests have failed13:27
adiroibansome for the other translation windmill tests13:28
adiroibanbut I'm working on solving them13:30
adiroibanjust that I can not reproduce them on my computer13:33
danilosadiroiban, hi, any reason you haven't gotten https://code.edge.launchpad.net/~adiroiban/launchpad/bug-402235/+merge/23973 landed?13:42
danilosadiroiban, or https://bugs.edge.launchpad.net/rosetta/+bug/487137 for that matter?13:43
mupBug #487137: Allow Rosetta admins to create custom language codes <Launchpad Translations:In Progress by adiroiban> <https://launchpad.net/bugs/487137>13:43
adiroibandanilos: yes. the permission problem is haunting me again and I don't know how should I map 3 roles to 2 zope permissions ...13:45
adiroibanI know this is not possible13:45
adiroibanand one suggestion was to create an adapter and delegate the custom language code part of IProduct13:45
adiroibanbut thinks are not that simple13:46
adiroibana simple solution would be to add launchpad.CustomLanguageCodeAdmin permission13:46
danilosadiroiban, ok, just wondering because today is the last day to land stuff for 10.04, but I won't be able to help much with these things13:46
danilosadiroiban, (i.e. we are very busy with many things today trying to get generation of templates in proper shape)13:47
adiroibandanilos: don't worrr13:47
adiroibandanilos: don't worry13:47
adiroibanI can imagine that people are busy now13:47
=== noodles775 changed the topic of #launchpad-reviews to: On call: jelmer || reviewing: noodles || queue: [noodles*2] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
adiroibanalso for that bug, I think I will have to talk with sizui and discuss what is the best option13:49
adiroibanin the same time, I was also busy with other problems.13:49
adiroibanbtw. sorry for leaving yesterday without a notice :)13:50
danilosadiroiban, anyway, I think using TranslationsAdmin should be fine, but I might be missing something :)13:50
danilosadiroiban, also, I've sent you a comment on bug 548375 if you haven't seen it13:50
mupBug #548375: Rosetta import empty strings (e.g. "") from .po files <rosetta-imports> <Launchpad Translations:In Progress by adiroiban> <https://launchpad.net/bugs/548375>13:50
danilosadiroiban, heh, no worries :)13:51
adiroibandanilos: translationAdmin is not ok, since product owners are also TranslationAdmin13:53
adiroibanand the should not be allowed to change custom language codes (as far as I understoond from the bug report)13:53
danilosadiroiban, right, it's probably something for us to reconsider :)13:54
=== mrevell-lunch is now known as mrevell
adiroibanallowing product owners to change custom language codes will make things ... plain :)13:55
adiroibanhenninge: can you please try to resubmit that branch again? I think those windmill failers were transient as I can no longer reproduce them14:04
adiroibandanilos: You still don't have the Belgium visa?14:05
danilosadiroiban, I don't need it anymore since Dec 200914:05
adiroibanah. nice. and will you be at UDS?14:06
danilosadiroiban, no, sorry14:07
henningeadiroiban: I can do that, sure.14:10
adiroibanhenninge: do you think you can also push my other branches that are approved (ie. https://code.edge.launchpad.net/~adiroiban/launchpad/bug-146178/+merge/24265 ) or should I talk with bac ?14:11
henningeadiroiban: if they are approved, I can land them.14:11
bacadiroiban: i attempted to land your branch last night but, again, ec2 ate it14:11
bacadiroiban, henninge: i will attempt again shortly.14:12
henningebac: ok, cool14:12
adiroibanadeuring: is there anything I need to do for this branch https://code.edge.launchpad.net/~adiroiban/launchpad/bug-402235/+merge/23973 ?14:12
adeuringadiroiban: I think  I found a few spelling mistakes ;) Once you fix them, I can run the ec214:13
adiroibanadeuring: they should be fixed. I have also merged with devel and fixed the conflicts14:14
adeuringadiroiban: ah, sorry I did not notice this. I'll start the ec test right now14:15
adiroibanbut I think it is my fault for only pushing those changes without adding a new comment to the MP14:15
adeuringadiroiban: would have been better to ping me about the pushes ;)14:15
adeuringadiroiban: and sorry, I should have recommended earier to ping me...14:16
=== StevenK changed the topic of #launchpad-reviews to: On call: jelmer || reviewing: noodles || queue: [noodles*2,StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== bigjools changed the topic of #launchpad-reviews to: On call: jelmer || reviewing: noodles || queue: [noodles*2,StevenK, bigjools] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
bigjoolssoyuz review overload14:50
=== jelmer changed the topic of #launchpad-reviews to: On call: jelmer || reviewing: noodles || queue: [noodles,StevenK,bigjools] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
* noodles775 takes a look at the other branches14:54
leonardrgary, if you have time i'd like you to look into the mystery of https://code.edge.launchpad.net/~leonardr/lazr.restful/fix-remove-recipe/+merge/2442314:56
leonardrwhy do you think the lazr.restful tests pass but the lazr.restfulclient tests fail?14:57
=== noodles775 changed the topic of #launchpad-reviews to: On call: jelmer || reviewing: noodles || queue: [noodles,bigjools] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
gary_posterleonardr: I'll take a glance, though I'm kind of swamped today.  If I have any immediate ideas I'll share them though.  I'll be able to take a look within the next hour (which is also when we are scheduled to have our call).14:58
leonardrgary: the reason i'm picking on you is it's a very zope-security problem. if you can think of someone else who might know, i'll ask them14:58
gary_posterI'm your best bet, I think.  You know who the other suspects are.14:58
leonardrjelmer, i'd like to add https://code.edge.launchpad.net/~leonardr/lazr.restfulclient/delete-entry/+merge/24421 to the queue15:00
leonardrbac, want to solve a zope mystery?15:00
jelmerleonardr: sure, np15:01
bacleonardr: ?15:01
=== leonardr changed the topic of #launchpad-reviews to: On call: jelmer || reviewing: noodles || queue: [noodles,bigjools,leonardr] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
noodles775StevenK: did you check that the comment about binary expiry also applies for sources (ie. that just that fact that expires is set is enough to deny the copy)?15:01
leonardrbac: https://code.edge.launchpad.net/~leonardr/lazr.restful/fix-remove-recipe/+merge/2442315:01
jelmernoodles775: what's the policy wrt updating import ordering in existing files?15:01
leonardrthe zope security proxy is protecting objects when i run lazr.restfulclient tests, but not when i run lazr.restful tests on the same objects15:01
bacleonardr: interesting.  unfortunately i don't have time ATM to look at it.15:02
noodles775jelmer: Generally if it's not going to blow the diff out, usually we request people to order them as a drive-by, but it's not policy afaik.15:02
leonardrbac: ok, np15:02
jelmernoodles775: ok, thanks15:02
StevenKnoodles775: I was playing since-wgrant-says card, but I'm having a dig now15:04
wgrantI wondered that myself a few weeks ago, but played the soyuz-code-says card and decided not to think about it any more.15:05
wgrantThe mechanics of LFA expiry still confuse me slightly.15:05
gary_posterleonardr: almost certainly the reason for a problem like that is that, in one case, the source of the objects is security wrapped, and in the other, it is not.  Since it is "viral," a simple change at the beginning of the process will result in this.15:07
gary_posterleonardr: I will try to look at details with you a little later this hour15:07
leonardrgary: great15:07
StevenKnoodles775: Right, so death row processing will certainly expire out sources15:10
noodles775StevenK: r=me... I added a small comment on the MP (just about updating the comment and perhaps the test to demo this).15:11
StevenKnoodles775: Source and binary expiration is slightly seperate. Just because a binary is expired doesn't mean a source is15:13
StevenKnoodles775: The comment in the code, or the test?15:14
noodles775StevenK: Yep, I just meant that it should be obvious when looking at the source check *why* we are only checking that expires is set, rather than that it's in the past (ie. "See above comment regarding expires.").15:16
StevenKnoodles775: TBH, I thought that was nicely covered already by the binary comment.15:17
noodles775StevenK: and I think the MP has more details about the test change I was suggesting (just not using a 1970 date, so that the test also shows that the expiry just has to be set to raise the exception).15:17
noodles775StevenK: yes, it is, if it's right above it then fine (I didn't notice in the diff, just looked locally at trunk).15:18
StevenKnoodles775: Yeah, the comments are about 6 lines apart15:18
noodles775Perfect, forget that then :)15:18
StevenKAnd I was using 1970 since the test for expired binaries did the same15:19
noodles775StevenK: yep, but looking at the test on its own, you'd expect it to fail for an expires in the future (well, I would). But up to you, I'm not fussed about it.15:20
=== noodles775 changed the topic of #launchpad-reviews to: On call: jelmer || reviewing: noodles || queue: [noodles,leonardr] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
* StevenK gives ec2 another chance15:21
wgrantCan someone please ec2 lp:~wgrant/launchpad/delete-more-stuff? Two attempts to land it vanished yesterday.15:28
wgrant(my others landed after two or three attempts... yay reliability)15:28
noodles775bigjools: given that you're change will also require updating lp-production-configs, should you be wrapping the actual config.buildmaster.bzr_builder_sources_list in a try/except?15:31
noodles775wgrant: yep, trying now.15:31
wgrantnoodles775: Thanks.15:32
noodles775bigjools: also, why not catch KeyError rather than StandardError when substituting the series?15:32
bigjoolsnoodles775: it returns None if it doesn't exist15:33
bigjoolsI think!15:33
noodles775bigjools: I just tried locally - AttributeError: No section key named bzr_builder_sources_list.15:33
bigjoolsre. second point, I am shamefully copy & wasting the code in adapters/archivedependencies.py that does a similar thing15:33
bigjoolsnoodles775: crap, I'll fix that, thanks for noticing15:34
noodles775np. Great.15:34
noodles775bigjools: you could rework the second test (or add a separate test) so it shows the failure when the config option is not set?15:39
bigjoolsnoodles775: yep, I can add another test15:39
bigjoolsnoodles775: KeyError doesn't catch the failure15:50
noodles775bigjools: really? I was just doing "hey %(expected_key)s" % {'actual_key': 'blah'}, but maybe I obviously missed something?15:55
bigjoolsnoodles775: I think there's a sufficiently broad range of possible errors that it makes sense to catch a base exception doesn't it?15:55
noodles775bigjools: yep.15:55
bigjoolsat least that's why it's in the other code IIRC15:56
noodles775Especially if you include getting the config option in the same try/except, or are you adding a separate one?15:56
bigjoolsit's separate15:56
bigjoolsnoodles775: http://pastebin.ubuntu.com/424644/15:57
noodles775bigjools: isn't it an error if the config option is not set? (ie. do you want to log.error?)15:58
bigjoolsnoodles775: no, it's fine, since it will be unset in production for a while15:59
noodles775bigjools: ok, great.15:59
=== matsubara is now known as matsubara-lunch
=== gary_poster is now known as gary-lunch
=== matsubara-lunch is now known as matsubara
=== salgado is now known as salgado-lunch
henningedanilos: where's the branch/mp17:14
henninge?17:14
daniloshenninge, email's coming up17:14
daniloshenninge, I've CCed you directly17:14
henningedanilos: got it17:15
daniloshenninge, cool!17:15
=== rockstar changed the topic of #launchpad-reviews to: On call: jelmer, rockstar || reviewing: noodles || queue: [noodles,leonardr] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
henningedanilos: a lot of copy-and-paste in the test ;-)17:26
henningedanilos: The class docstring, the class attributes17:26
henningedanilos: and the comment on each test method is identical ...17:26
daniloshenninge, heh, I don't know about those things :)17:27
henningedanilos: Can you give that some love, please?17:27
daniloshenninge, sure17:27
henningedanilos: don't feign ignorance, won't work on me! :-P17:27
bacadiroiban: i resent your branch to ec2 a good while ago.  let's hope this one works17:28
henningedanilos: the other thing I wonder about is the indention of the "warning". The previous code did it write, your version is not in harmony with our style. ;)17:29
henninge(i.e. it's wrong ;)17:29
henninges/write/right/17:29
daniloshenninge, lint was complaining about it17:29
henningewhat did it complain about?17:29
henningedanilos: anyway, it's not a strong point. Basically this branch is good.17:30
henninger=me17:30
daniloshenninge, you are going to like this: "519: [W6501, TranslationImportQueueEntry.getGuessedPOFile] Specify string format arguments as logging function parameters"17:31
henninge;-)17:31
henningedanilos: but I was just talking about the multiline-handling.17:31
daniloshenninge, I know what are you talking about, but why do you say it's not according to style guide?17:32
henningehttps://dev.launchpad.net/PythonStyleGuide#Multiline%20braces17:33
henningedanilos: I'd think it should be like this:17:35
henninge               warning = (17:35
henninge                   "%s: can't approve entry %d ('%s') "17:35
henninge                   "because entry %d is in the way." % (17:35
henninge                       potemplate.title, self.id, self.path,17:35
henninge                       existing_entry.id))17:35
henningebut as I said, not a strong point for me ...17:35
daniloshenninge, well, not really17:35
daniloshenninge, according to that, only stuff after % should be reformatted for each bit to be on a separate line17:35
daniloshenninge, the initial brace is an alignment parenthesis, it's not a multi-element one :)17:36
henningedanilos: right, I am just trying to apply the style.17:36
daniloshenninge, only stuff after % (string formatting) is a tuple17:36
henningetrue17:36
daniloshenninge, well, I am applying the multiline function definitions style myself so I think it's good :P17:37
* danilos goes check multiline fundefs style now ;)17:37
henningedanilos: they allow both, I jut wrote them the other week ... ;)17:37
daniloshenninge, I know :)17:37
henningeanyway, do it in whatever way you like. I have to go now ... ;-)17:38
henningeLaunchpad is sooooo slooooow today ...17:40
=== gary-lunch is now known as gary_poster
=== salgado-lunch is now known as salgado
=== rockstar changed the topic of #launchpad-reviews to: On call: rockstar || reviewing: || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== gary_poster_ is now known as gary_poster
=== matsubara is now known as matsubara-afk
=== salgado is now known as salgado-afk

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