/srv/irclogs.ubuntu.com/2009/11/05/#launchpad-reviews.txt

=== danilo-afk is now known as danilos
=== matsubara-afk is now known as matsubara
danilosEdwinGrubbs, hi, do you have time to take a look at https://code.edge.launchpad.net/~danilo/launchpad/bug-474874/+merge/1445011:41
=== danilos changed the topic of #launchpad-reviews to: on call: EdwinGrubbs || reviewing: - || (r-c candidates skip the queue) queue: [danilo] || This channel is logged: http://irclogs.ubuntu.com
=== barry` is now known as barry
danilosnoodles775, al-maisan: I assume you are not doing any reviews today?12:31
al-maisandanilos: if need be I can review.12:31
danilosal-maisan, it's very short, just adding some DB permissions for a script: https://code.edge.launchpad.net/~danilo/launchpad/bug-474874/+merge/1445012:32
noodles775danilos: I'm not no, sorry.12:33
al-maisandanilos: OK .. give me 5 minutes and I'll review it.12:33
danilosal-maisan, excellent, thanks a lot12:33
al-maisanyou are welcome 12:33
danilosnoodles775, no problem, al-maisan is taking care of it :)12:33
al-maisandanilos: this is supposed to go into 'devel' .. is that correct?12:39
danilosal-maisan, yes, but I am actually going to ask for this to be CPed (or perhaps not, GRANTs might be enough)12:39
danilosal-maisan, note that security.cfg changes do not need to go into db-devel12:40
al-maisandanilos: fine, just checking.12:40
=== mrevell is now known as mrevell-lunch
al-maisandanilos: looks good, r=me12:54
danilosal-maisan, thanks12:54
=== mrevell-lunch is now known as mrevell
=== EdwinGrubbs changed the topic of #launchpad-reviews to: on call: - || reviewing: - || (r-c candidates skip the queue) queue: [danilo] || This channel is logged: http://irclogs.ubuntu.com
=== salgado is now known as salgado-lunch
=== danilos changed the topic of #launchpad-reviews to: on call: - || reviewing: - || (r-c candidates skip the queue) queue: [] || This channel is logged: http://irclogs.ubuntu.com
adeuringal-maisan: fancy a relatively small review? (or is already time for "Feierabend" for you?)15:55
al-maisanadeuring: a small one is OK.15:56
adeuringal-maisan: thanks! https://code.edge.launchpad.net/~adeuring/launchpad/hwdb-udev-submissions-noise-reduction-2/+merge/14479 (130 lines; just two tuples changed)15:57
sinzuibeuno: ping15:57
beunosinzui, hi15:58
sinzuiyour suggest for the yes-no widget rocks. it hard to do15:58
al-maisanadeuring: OK15:58
sinzuibeuno: I'll work on it later today and see if I can make a universal dsolution15:58
beunosinzui, because it uses db enums, yadayadayada?15:59
sinzuibeuno: no actually not15:59
sinzuibeuno: The launchpadformview custom_widget function does not work with macro-style widgets16:00
sinzuibeuno: making my widget work or fixing LaunchpadFormView is a big win for reuability16:00
al-maisanadeuring: so, this is a 'devel' branch, right?16:01
adeuringal-maisan: yes16:01
al-maisancool.16:01
sinzuibeuno: Your suggestion is *much* better that what I did. I spent more than an hour trying to craft a sentence that would work with yes/no. or true/false, or on/off.16:01
* sinzui thinks all the boolean radio macros suck.16:02
beunosinzui, so I don't think yes/no will work well, no matter how we craft the phrases, if this is an urgent branch, I'd be happy to trade an approve now for a fix before week 416:03
sinzuibeuno: no not urgent. I completely agree with your suggest16:05
beunosinzui, so can we still be friends if I push back on this?16:06
sinzuibeuno: I think you misunderstand. I have no intention of landing this branch until that widget rocks.16:06
al-maisanadeuring: LP is still chewing on lp:~adeuring/launchpad/hwdb-udev-submissions-noise-reduction-216:06
beunosinzui, ah! great!  :)16:06
al-maisanI can't even merge it16:06
adeuringal-maisan: did you try to simply branch it?16:07
al-maisanyes16:07
beunosinzui, other branch approved, it's a great improvement, thank you16:07
al-maisanadeuring: this is very funny:16:08
al-maisan$ bzr merge lp:~adeuring/launchpad/hwdb-udev-submissions-noise-reduction-216:08
al-maisanbzr: ERROR: Not a branch: "bzr+ssh://bazaar.launchpad.net/~adeuring/launchpad/".16:08
adeuringal-maisan: odd... Let me paste the diff16:08
al-maisanam I missing something?16:08
al-maisanadeuring: please do.16:08
adeuringal-maisan: http://paste.ubuntu.com/310697/16:10
=== beuno is now known as beuno-lunch
* al-maisan looks16:10
al-maisanadeuring: r=me16:14
adeuringal-maisan: thanks!16:15
adeuringal-maisan: und schönen Feierabend!16:15
al-maisanadeuring: in 30 minutes or so :) but thanks anyway!16:16
=== matsubara is now known as matsubara-lunch
=== salgado-lunch is now known as salgado
gary_posterbarry: I'd like your thoughts (consider it somewhere between a late pre-impl and a pre-review :-) ) on this: http://paste.ubuntu.com/310732/  It is supposed to be a fix for https://bugs.edge.launchpad.net/launchpad-foundations/+bug/47555017:02
mupBug #475550: _pythonpath whitelist of clean_modules is too fragile <Launchpad Foundations:In Progress by gary> <https://launchpad.net/bugs/475550>17:02
* barry looks17:02
gary_posterty17:02
gary_posterbarry: The old warning still has value, now that I think of it.  Here's a variant:17:05
gary_posterIf I find any of the namespace packages using the approach in the pastebin, then I go through sys.modules again.17:06
gary_posterif anything in sys.modules begins with ``${one_of_the_namespace_packages}.`` (notice the dot) then blow u[17:07
gary_posterup17:07
gary_postercomplaining, as before, that _pythonpath should be imported earlier17:07
barrygary_poster: what's an example of "fewer attributes" (or really different number of them)?17:09
gary_posterargh, my second idea doesn't work.  OK, here's the idea.17:10
gary_posterbut I can make it work.17:11
gary_posterbarry: In this example, ``example`` is a "real" package with only an empty __init__.py17:12
gary_poster>>> import example17:12
gary_poster>>> dir(example)17:12
gary_poster['__builtins__', '__doc__', '__file__', '__name__', '__path__']17:12
gary_poster>>> import lazr17:12
gary_poster>>> dir(lazr)17:12
gary_poster['__doc__', '__name__', '__path__']17:12
gary_posterlazr is one of these namespace things17:12
gary_posterso, barry, I think what I can do instead is look for __file__17:12
gary_posterno17:13
gary_posterthat might not match some C modules, right?17:13
barryright17:13
gary_posterargh17:13
gary_posterbarry: But C modules would actually have something exposed *other* than just those three, so the approach as given works.  What it *can't* do is actually recognize if there's a problem (e.g., lazr.uri was imported before) and complain, unless I switch to just hardcoding the namespace packages.17:17
gary_posterI'd rather not do that.  a different kind of fragility17:17
barryso inspect.getfile() actually tests for object.__file__ to see if it's a builtin module or not17:18
barryright17:18
gary_posterbtw, I discovered why our deb zope packages don't have this problem: they are installed in debian with the egg-style __init__.py, not this crazy .pth thing.17:19
barrymaybe...17:22
barry1. look for module.__file__; if it exists it's fine17:23
barry2. if not, look for module.__package__; if it exists it's a builtin; if not it's a pth namespace package17:23
barry>>> import _socket17:23
barry>>> _socket.__package__17:24
barry 17:24
gary_posterhuh17:24
barry>>> for name in dir(_socket):17:24
barry...   if name.startswith('_'):17:24
barry...    print name17:24
barry... 17:24
barry__doc__17:24
barry__name__17:24
barry__package__17:24
barry 17:24
=== matsubara-lunch is now known as matsubara
gary_posterbarry, cool.  That might work.  To make sure I understand, I am right that the presence of __package__ in this case is kind of random--that is, an implementation detail that might very well change?17:25
gary_posters/I am/am I/17:25
barrygary_poster: i'd have to look at the code to know that ;)17:25
gary_posterheh, ok17:26
barrygary_poster: oh, let me also check py2.417:26
gary_posterFor me on 2.4:17:26
gary_poster>>> import _socket17:26
gary_poster>>> _socket.__package__17:26
gary_posterTraceback (most recent call last):17:26
gary_poster  File "<stdin>", line 1, in ?17:26
gary_posterAttributeError: 'module' object has no attribute '__package__'17:26
barryfsk17:26
gary_posterotoh, it has a __file__ ;-)17:26
barryyeah, so "implementation detail that might very well change" == True17:27
=== beuno-lunch is now known as beuno
gary_posterright17:27
barryhow strange!  why did python 2.6 lose _socket.__file__?!17:27
barryseems like that would still be pretty handy, and that _socket.__package__ is useless17:28
barryyay for nothing in the NEWS file about this17:28
sinzuibarry: gary_poster: I have a small RC candidate for review: https://code.edge.launchpad.net/~sinzui/launchpad/noneable-bug-475433/+merge/1448717:30
barrysinzui: looking...17:32
barrysinzui: mp has no diff yet17:34
sinzuioh bugger17:34
sinzuiI think we are waiting for both the branch scanner and the mp cron17:35
sinzuibarry: do you want a pastebin?17:35
barrysinzui: sure17:35
sinzuihttp://pastebin.ubuntu.com/310757/17:36
barrysinzui: r-me17:37
barryer, r=me17:37
gary_posterbarry: I think this will work.17:37
gary_poster(1) if there's a __file__ leave it alone; it's fine.17:37
gary_poster(2) if there is a name in the dir that is not __*__ and the full dotted name is not in sys.modules, leave it alone, it's fine.17:37
gary_poster(3) Otherwise, we have a namespace package, and we can act on that.  Moreover, if there *were* any names in sys.modules, that means that _pythonpath was imported too late.17:37
sinzuibarry: thanks17:37
gary_posterGoing to sketch that17:38
barrygary_poster: sounds reasonable.  i'm going to grab some lunch now.  feel free to paste anything for when i get back17:39
gary_posterbarry: thank you, will do.17:39
gary_posterbarry, fwiw: http://paste.ubuntu.com/310788/18:12
gary_postergoing to make an MP18:12
gary_posterflacoste, barry: https://code.edge.launchpad.net/~gary/launchpad/pythonpath/+merge/1449018:22
flacostegary_poster: i'll leave barry do the actual code review18:26
gary_posterflacoste: cool18:26
gary_poster_barry: I'm on this nick for a sec :-)18:33
sinzuiflacoste: I have a small RC candidate for review: https://code.edge.launchpad.net/~sinzui/launchpad/noneable-bug-475433/+merge/1448718:45
flacostesinzui: approved, add it to CRB18:47
sinzuithanks.18:47
barrygary_poster: looking19:13
gary_posterbarry: thanks.  on call, so will have latency19:13
barrygary_poster: r=me19:18
gary_posterbarry, thank you19:19
abentleyrockstar: I can has review? https://code.edge.launchpad.net/~abentley/launchpad/fix-rewrite/+merge/1449820:38
rockstarabentley, is this for RC?20:38
abentleyrockstar: Yes.20:38
rockstarabentley, I wonder if we should also fix the stdout flushing issue20:39
rockstarabentley, also, r=me20:39
abentleyrockstar: thumper wanted to fix it by invoking the python interpreter with -u, so I've gotten mbarnett to do that.20:39
rockstarabentley, ah, okay. great.20:40
=== salgado is now known as salgado-afk
=== matsubara is now known as matsubara-afk

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