=== mgz is now known as mgz_ [10:58] cjwatson: hey col [10:59] grue_pm: hi [15:41] hi cjwatson [16:08] is there a launchpad admin around? I'm having some issues with uploading translations from a script [16:11] slightly still around but really busy as last day before holidays, with you in a bit [16:17] thanks cjwatson [16:22] dpm: ^- do you think you could help KaZeR out with their ubuntu-l10n-tools problem? The only useful thing I can see from server logs has been http://paste.ubuntu.com/10719491/, which for some reason is turning into a 500 rather than a 403, but regardless, it looks like a creds problem and my suspicion is it's client-side [16:23] cjwatson: can we do one real quick test together? i'd like to know if my own upload script faces the same issue. if it does i might be able to troubleshoot it more easily than the ubuntu-l10n-tools [16:27] KaZeR: it's going to take me more time to sync the logs than I have left, so I doubt I could contribute anything [16:28] today at least [16:28] ok i understand. i thought that you had direct access to the logs [16:28] KaZeR: what is the actual problem? [16:28] KaZeR: is it soem command i can run here for example? [16:28] I have direct-ish access, but only by rsync and that takes a while because there are lots of individual very large files [16:29] dobey: sure. here's what i'm trying to do : [16:29] ./translations-lp-upload -p navit -e trunk -t navit /home/navit/github/bin/po/navit.pot -k launchpad.sqlite [16:29] 2015-03-31 18:27:31,283 ERROR Template upload failed (error 500, URL https://translations.launchpad.net/navit/trunk/+pots/navit/+upload) [16:30] whtere does ubuntu-i18n-tools come from? [16:30] lp:ubuntu-l10n-tools [16:30] cjwatson: found this yesterday in the logs : http://paste.ubuntu.com/10719491/ [16:30] (NOT i18n) [16:30] the traceback amounts to "you aren't a translations admin", but you should be [16:30] dobey: if you know of a better script / tool /workflow i'm interested, but this is the only tool i found so far [16:38] KaZeR: so you're only uploading the template? why not just configure lp to automatically get it? [16:39] dobey: i'd love that. the only other way i found in the doc was to use a bzr branch, but we don't use bazaar [16:39] oh, it's not in the source tree? [16:39] nop, it's build automatically during compilation [16:40] i want to have our CI server push the updates to launchpad [16:43] well i get a 403 [16:43] which makes sense [16:44] but on the other hand, why is this using the firefox cookies db for auth [16:44] that's what's in the doc :) [16:49] yeah, i wasn't asking why you were. i was asking why the code was :) [16:50] ha :D [16:50] looks like the API doesn't quite have a way to upload a template :-/ [16:50] i tried to wrote a small perl script ( using Mechanize ) to do it on my side, but i'm facing an issue that seems similar ( tho, it does not require the firefox cookies ) [16:51] my script does not use the api, it really uses the form to upload [16:51] right. as does the translations-lp-upload tool [16:53] using my own script i'm getting : Error POSTing https://translations.launchpad.net/navit/trunk/+translations-upload: Internal Server Error at lp_upload.pl line 20. [16:54] i might not be using oauth as i should. can you tell me a bit more about this ( anyway, it's weird that i'm getting a 500 ) [17:09] cjwatson, looking at it now [17:11] dobey, so yeah, it seems you have answered the questions yourself [17:11] in summary, we're jumping through hoops a bit as a workaround for not having an API [17:12] although IIRC, support for managing templates was added a while ago to the API [17:12] * dpm looks [17:13] i don't see it in the stable api docs at least [17:14] I'm wondering if there was any bit where you're required to be a LP Translations admin to do the upload (as opposed to being the project admin) [17:14] being the project owner implies having the launchpad.TranslationsAdmin permission on the project [17:14] see lib/lp/security.py:AdminProjectTranslations [17:15] assuming that's being checked on the right object, at least [17:15] ok [17:16] hm, actually, that's not the right permission class [17:16] ah, no if I'm reading this correctly, the only API bit implemented is to read or modify existing templates: https://launchpad.net/+apidoc/devel.html#translation_template [17:16] it'd be EditPOTemplateDetails, I think [17:16] (re: the question whether there is API we can use for uploading) [17:17] still, owner of the product should suffice [17:17] ok [18:02] there's no way to track multiple bugs from Debian per bug is there? [18:02] (in Ubuntu bugs) [18:05] not in the same package [18:05] if they are in different packages in debian/ubuntu, you should be able to add each debian bug separately as a task [18:06] problem is the Ubuntu bug ends up covering two Debian bugs, in the same package [18:06] so meh [18:06] should probably be two ubuntu bugs then, or one debian bug should be marked a dup of the other [18:06] mmm [18:07] might just file the second launchpad bug, dupe em. The fix for one bug down here in ubuntu squishes two bugs in Debian, and the same commit in Debian squishes two bugs so meh. [18:07] not important, i'll just add a note about it being related via comments [18:26] is there a way to transfer the ownership of a PPA to a team? [18:27] sidi: A PPA's ownership is part of its identity, so not as such, but you can easily create a new PPA for the team and copy all the packages into it with binaries, so you don't have to rebuild everything. [18:27] cjwatson, i see, thanks [18:28] Technically it's also possible to grant upload access to a team without changing ownership (edit-acl in lp:ubuntu-archive-tools can do that), although there's no UI for that and it's generally a bit opaque. [18:36] cjwatson, Turns out I had accidentally created a personal PPA (for ~sidi) when creating a new recipe on a project when i meant it to go to the existing team's PPA [18:36] i got myself confused for a second thinking I had made this PPA for ~sidi and not for the team, and hadn't yet noticed [18:37] cjwatson, i didnt know there were UI-less things! actually i'm sometimes a bit annoyed that navigating through PPA / branches is so hard. i suspect you guys are such experts at it that you don't realise how complex it is to third parties ;-) === mgz_ is now known as mgz === mattgrif_ is now known as mattgriffin [22:43] cjwatson: You're likely about to have a problem in the channel. === FatBack changed the topic of #launchpad to: penis === wgrant changed the topic of #launchpad to: Launchpad is an open source project: https://dev.launchpad.net/ | This channel is logged: http://irclogs.ubuntu.com/ | User Guide: https://help.launchpad.net/ | Support: https://answers.launchpad.net/launchpad [22:52] wgrant: Thanks. [23:09] wgrant: what about setting +t ? [23:09] i said that yesterday and they said "Not a frequent enough issue" [23:09] KaZeR: I don't see value in +t [23:09] (in multiple channels) [23:09] This happens maybe twice a year. [23:09] np, it's up to you. [23:09] It's far more valuable that someone can come along and put an outage announcement in the topic, for example. [23:10] that makes sense