[01:19] bac: sinzui: heyo (sorry was driving up to sydney) did you still need me to apply something? [01:25] wuu Sydney [01:29] \o/ bzr-svn success https://code.staging.launchpad.net/~thumper/pydoctor/bzr-svn [01:36] thumper, excellent :) [01:39] spm: hey, can losas turn a project into a project group? === MTecknology is now known as MTeck-ricer [03:40] thumper: I believe so. not sure the rules around that atm... [03:41] thumper: huh, chr can do them now as well. [03:46] * jml is back [04:03] thumper, spm: you cannot convert a project into a project group. CHR can now create project groups but the name must be free already, i.e. project of same name cannot exist [04:04] ahh. ta, thanks bac [04:04] bac: it would be pretty cool to have a script that renames the project, makes the project group and copies across descriptions and things like that [05:35] * thumper EODs [05:36] thumper, g'night. [05:50] g'night all === noodles775_ is now known as noodles775 [08:20] good morning === danilo-bblot is now known as danilos [09:10] Mornin' all [10:14] henninge: hi, is there a page listing all templates in Launchpad with the same name? I'm working at bug 435165 and beside a link to other templates from the source package, I would like to add a link to all templates with the same (if there is such page) [10:14] Bug #435165: Make it easier to navigate to the full list of templates in source packages [10:15] adiroiban: no, there is no such page. [10:16] adiroiban: but I know that on a templates page there is a list with links to templates with the same name. [10:16] * a template's page * [10:16] henninge: yes... but i think only first 4 tempaltes are listed [10:17] adiroiban: sure but it means that there is already such a query in the code. You could make the limit optional. [10:21] henninge: :) I don't like options :) ... there is still the UI problem how to display 30 templates [10:22] henninge: I think i will just go with solving that bug :) [10:22] without other changes [10:29] wgrant: did you see a build go through on DF of a 3.0 package? [10:34] bigjools: I didn't. Is the builder fixed? [10:34] should be [10:35] bigjools: lamont suggested it wouldn't be done until today or Monday. [10:35] bigjools: (lp-buildd needs patching for Karmic's dpkg) [10:35] mmm oh, I thought he said he'd done it [10:36] * wgrant retries. [10:37] I think I have seen "AttributeError: 'thread._local' object has no attribute 'interaction'" before but cannot remember what is missing here: http://paste.ubuntu.com/339130/ [10:37] henninge: You're not logged in. [10:37] Anybody got an idea? [10:37] argh! [10:38] thanks wgrant, now I remember [10:38] ;) [10:41] wgrant: "Couldn't find directory of bar_1.0-1.dsc in dpkg-source output" [10:44] bigjools: Yep, that's the bug. [10:44] (and as you can probably see, I forgot to flip it back to manual in time. oops) [10:44] wgrant: that's what happens without the right dpkg? [10:44] bigjools: dpkg-source's output changed in Karmic. [10:44] * wgrant finds the bug. [10:45] ah [10:45] https://bugs.edge.launchpad.net/launchpad-buildd/+bug/476036 [11:00] Morning, all. [11:08] wgrant: I am going to bash a load of builds through DF to stress test some stuff, I'll need to make the builder auto again [11:08] morning deryck [11:08] bigjools: But the builder does not work (even for 1.0 sources) [11:08] wgrant: oh, fuck sake [11:08] this is not good [11:09] pqm closes today and I need to QA stuff [11:09] bigjools: The fixes are trivial, if you can get a sysadmin to either alter the regexps as lamont says, or downgrade dpkg [11:09] bigjools: closes on Sunday I think, but not much different. [11:10] noodles775: I worked every waking hour this week already, I don't want to work the weekend too :) [11:10] totally. I was just clarifying when pqm closes :) === matsubara-afk is now known as matsubara [12:02] wgrant: applied, fwiw [12:05] * bigjools will test it when dogfood decides to wake up [12:06] why does FF have to reload a page when going back one in the history.... ridiculous [12:07] "work offline", "back", "work online" maybe? [12:10] apt-get install chromium maybe ;) [12:11] well, not the game === henninge is now known as henninge-lunch === mrevell is now known as mrevell-lunch === henninge-lunch is now known as henninge [13:19] sinzui: Hi! === mrevell-lunch is now known as mrevell [13:55] hi henninge [14:13] sinzui: ping, again [14:13] hello [14:13] Hi [14:14] sinzui: I am not sure if I missunderstood something or if I just haven't grasped the workings of the zope/LP security system yet. [14:14] sinzui: but I am stuck and I wondered if you could help me. [14:14] I hope I can [14:15] you want to give ~registry launchpad.Edit on IAccount so that the status can be set to SUSPENDED? [14:16] I guess. Here is what I have done so far: http://paste.ubuntu.com/339233/ [14:16] sinzui: what did we plan to use launchpad.Moderate for, then? [14:17] sinzui: so far I am only dealing with views [14:17] the page test is failing [14:18] like this: http://paste.ubuntu.com/339192/ [14:18] henninge: That was flacoste's suggestion. To introduce a new permission, you need to modify the IAccount interface, separate the items you want ~regisrty to manage to a new interface. Add the new permissing and interface to the ZCML [14:19] henninge: the paste looks like the ZCML rules are missing [14:20] sinzui: I only changed ther permission for +reviewaccount [14:20] but not the underlying object [14:21] yes, the zcml requires lp.Edit for IAccount. [14:21] you can load that view so long as the code/template does not access the attributes [14:21] I am trying to understand the error message [14:22] It says "launchpad.Moderate" is required to access this view but you don't have that. [14:22] right? [14:22] The last text of the last line indeed says that [14:23] Henning add this to account.zcml [14:23] permission="launchpad.moderate" [14:23] interface="canonical.launchpad.interfaces.IAccountPublic" /> [14:23] oop [14:23] do not do that [14:25] Separate the attributes that you want ~registry to manage to an new interface named IAccountModerate, and add this to ZCML. [14:25] permission="launchpad.Moderate" [14:25] interface="canonical.launchpad.interfaces.IAccountModerate" /> [14:25] sinzui: don't I need a new interf... [14:25] ah, yes [14:26] sinzui: ok, I will do that. [14:26] but what about the error message? [14:26] If that was the problem here, I'd expect a message about IAcount, not about the view. [14:26] henninge: the message says there is no launchapd.Moderation [14:27] so, the view is for IPerson, requiring launchpad.Moderate [14:28] doesn't ModeratePerson in security.py apply to that? [14:28] henninge: It might be. Accounts are not exposed in the UI, and we do not want to. [14:29] henninge: the first thing you should be doing is testing the redefinition of the intreface in doc and unit tests. You got ahead of yourself [14:29] sinzui: I see. [14:29] ok, let me do that and then we take it from there [14:30] morning launchpadders [14:33] deryck: lib/lp/bugs/tests/../doc/bug.txt is failing for me on an unmodified copy of stable. Any ideas? http://pastebin.ubuntu.com/339243/ [14:34] * deryck looks [14:37] deryck: test_bugs_webservice is also failing: http://pastebin.ubuntu.com/339246/ [14:37] abentley, no idea what that's about. pulling a copy of stable, too. [14:38] looks like sample data is out of sync with the test maybe. those look like sample data-based tests to me. [14:41] deryck: I ran make schema earlier, but I'll run it again. === salgado is now known as salgado-lunch [14:43] deryck: Yeah, make schema didn't help. [14:56] abentley, yeah, they fail for me too in stable. I can look into it, but it will have to wait a bit. Have a call coming up. [14:56] gary_poster: maybe you could review a small patch? https://code.edge.launchpad.net/~bjornt/launchpad/bug-495397/+merge/16007 [14:56] deryck: Thanks for looking into it. [14:56] abentley, np [14:56] BjornT_: looking [15:07] is there a way to see exceptions from a view method? [15:08] I can see LocationError but I don't know why [15:09] sinzui: I had to move things around in IAccount* to accomodate for the fact that status is part of two interfaces. http://paste.ubuntu.com/339260/ [15:10] Correct. You do need to do that [15:11] sinzui, let me know when finish editing LaunchpadTestPlan/3.1.12 [15:11] please [15:11] matsubara: done [15:15] henninge: I am surprised this works. I recall that the ZCML validator will scream if there are two permission for an attribute. [15:15] thanks sinzui [15:17] sinzui: it still does :( [15:17] henninge: I recall needing to ensure an attribute was listed just once, then updating the permission checkers in security.py to to ensure that each level of responsibility was included eg, launchpad.Moderate must allow the owner and admin to change them too === matsubara is now known as matsubara-lunch === beuno is now known as beuno-lunch === henninge is now known as henninge-brb === salgado-lunch is now known as salgado === henninge-brb is now known as henninge [16:12] sinzui: verifyObject is failing for IAccount. I don't kno why it does not see the Attributes from IAccountModerated. [16:13] interesting [16:13] http://paste.ubuntu.com/339309/ [16:14] status_comment is defined in IAccountModerated? [16:14] sinzui: I think the checkers are ok : http://paste.ubuntu.com/339313/ [16:14] sinzui: yes [16:14] hmm that is bad [16:15] ModerateAccount must check for registry_expert(user) , edit must check be admin. I think you need to revert EditAccount [16:16] henninge: my recommendation to change EditAccount was based on giving ~registry Edit. Since you create Moderate, we need separate checking rules [16:17] henninge: I think the error you are seeing relates to the interface and zcml. Can I see those [16:17] sinzui: but isn't the current situation more permissive to when I change it [16:17] ? [16:17] henninge: whay are you creating Moderate when Launchpad.Edit uses is_admin_or_registry_expert(user) [16:18] sinzui: lp:~henninge/launchpad/bug-495126-deactivate-users [16:18] codebrowse is down ... [16:18] let me paste it [16:20] sinzui: account.zcml http://paste.ubuntu.com/339317/ [16:21] sinzui: interfaces http://paste.ubuntu.com/339320/ [16:23] henninge: revert EditAccount. Those rules are not changing because you are creating launchpad.Moderate. ModerateAccount checks uses is_admin_or_registry_expert(user) . In fact, I think ModerateAccount() may look exactly like how you wrote EditAccount [16:25] henninge: As I said earlier, I do not think you can have IAccountStatus because you are defining it twice. That look wrong and I recall ZCML will hate you for it [16:25] sinzui: no, the current setup doesn't. [16:26] sinzui: IAccountEdit and IAccountModerate don't share any attributes. [16:26] sinzui: that is what zcml was complaining about in the first version I did. [16:27] henninge: IAccountPublic and IAccountModerate both have status, then you give it to IAccount [16:27] so Iaccount has status, but two permission rules for it === matsubara-lunch is now known as matsubara [16:28] IAccount does not inherit from IAccountPublic but from IAccountBase [16:28] there is one rule for reading and one for setting [16:29] sinzui: found it! [16:30] sinzui: there is no read rule for the two attributes in IAccountModerate, only a set rule. [16:30] henninge: yes I see that. [16:43] sinzui: test is passing now again, all is well. But interfaces/account.py has gained some weight. === beuno-lunch is now known as beuno [17:10] henninge: There are several unreviewed projects that were setup by spammers [17:11] sinzui: I did not get to reviewing projects this week, I am sorry [17:11] No one has reviewed projects for several weeks. there are about 450 projects [17:12] * sinzui approves the obvious ones so that only the challenging ones need review. [17:23] Hey, i'm interested in adding a boolean people[].mugshot.isValid to the API - to return if there is a mugshot for that person/team? Does anyone have any guidance [17:24] afaics it's currently only possible by using .open() [17:24] which is less than ideal, because it looks like it downloads the image [17:25] Daviey, sinzui can probably give you a nod [17:26] sinzui: ping ^^ [17:28] Daviey: we do not *add* to the API, We expose what is there. So the questions we ask it does the application need to know this, and if so add it. Otherwise we make changes to the application so that users get that information some other way, Do you want to do this because mugshot blows up when you try to get it? [17:28] sinzui: I just want a sane way to find out if a person/team has a mugshot or not :( [17:29] programtically [17:29] isn't there such logic in Launchpad today? [17:30] beuno: i've spent quite alot of time trying to find out.. i'll be really pleased if you know of one :) [17:31] Daviey, I don't, but Launchpad finds out somehow, so either that needs to be exposed, or something needs to be created [17:31] Daviey: In python we would test for this by [17:31] if person.mugshot: [17:31] or to be pedantic [17:31] if person.mugshot is None: [17:34] Daviey: I think the problem is not that you cannot know that the user has a mugshot, but that there is a problem in how it was exposed: bug 336943 [17:34] Bug #336943: requesting user's mugshot via api OOPS when user is using the default one [17:34] sinzui: I was just testing the above code, for a moment i was feeling rather silly. [17:34] Daviey: The logic should return None instead of dying [17:35] I do not think Launchpad should return the default url when there is none. [17:35] sinzui: what i'm currently doing is try mugshot.open(), catch HTTPError [17:35] which makes me feel very dirty. === deryck is now known as deryck[lunch] [17:37] Daviey: I agree. I do not know what is going. The API uses this: [17:37] http://pastebin.ubuntu.com/339365/ [17:40] hmm [17:42] Daviey: I think the problem is in lib/canonical/launchpad/fields/__init__py I see BaseImageUpload requires default_image_resource to be set...but never uses it! [17:44] sinzui: You obviously know this better than i do, but would that cause a BOOM? Having data that isn't used? [17:45] launchpad web app looks like it uses default_image_resource [17:46] Well if the default is not being used, the field is processing None, which will cause an error. I think the field should check that there is an image to work. If there is not one, return the default [17:49] sinzui: Is this something you'll have time to work on, or should i look at trying to submit it myself? [17:49] Daviey: I do not see a test that shows that the mugshot attribute works when access via the API. A test of any test user will work since non have mugshots set [17:49] I do not have time to work on it. That is why the bug is low [17:49] >>> people['davewalker'].mugshot [17:49] [17:50] I have no mugshot [17:53] sinzui: thanks for your time === EdwinGrubbs is now known as Edwin-lunch [17:57] Daviey: I updated bug 336943 with my thoughts [17:57] Bug #336943: requesting user's mugshot via api OOPS when user is using the default one [17:58] \o/ [18:26] Chex: ping [18:31] sinzui: hello there === deryck[lunch] is now known as deryck [19:13] oops. launchpadlib threw up when I ran the simple example on the wiki :( [19:13] when doing pagetest, and using find_tag_by_id, is there a function for getting links withing that tag? [19:14] like browser.getLink? [19:14] adiroiban, it uses beautiful soup under the hood, and soup can do that, so maybe check the find_tag_by_id() function definition. [19:45] mars: Here's my personal gathering of things I've played around with launchpadlib: http://paste.ubuntu.com/339440/ - hope it's useful [19:45] maxb, thanks [19:46] turns out it was my user pythonpath being loaded over the system libraries [19:46] nice [19:56] excellent! you can pull raw API JSON using a call launchpad._browser.get() === matsubara is now known as matsubara-afk === salgado is now known as salgado-afk === EdwinGrubbs_ is now known as EdwinGrubbs === fjlacoste is now known as flacoste