[10:58] <grue_pm> cjwatson: hey col
[10:59] <cjwatson> grue_pm: hi
[15:41] <KaZeR> hi cjwatson
[16:08] <KaZeR> is there a launchpad admin around? I'm having some issues with uploading translations from a script
[16:11] <cjwatson> slightly still around but really busy as last day before holidays, with you in a bit
[16:17] <KaZeR> thanks cjwatson
[16:22] <cjwatson> 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] <KaZeR> 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] <cjwatson> 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] <cjwatson> today at least
[16:28] <KaZeR> ok i understand. i thought that you had direct access to the logs
[16:28] <dobey> KaZeR: what is the actual problem?
[16:28] <dobey> KaZeR: is it soem command i can run here for example?
[16:28] <cjwatson> 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] <KaZeR> dobey: sure. here's what i'm trying to do :
[16:29] <KaZeR> ./translations-lp-upload -p navit -e trunk -t navit  /home/navit/github/bin/po/navit.pot -k launchpad.sqlite
[16:29] <KaZeR> 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] <dobey> whtere does ubuntu-i18n-tools come from?
[16:30] <cjwatson> lp:ubuntu-l10n-tools
[16:30] <KaZeR> cjwatson: found this yesterday in the logs : http://paste.ubuntu.com/10719491/
[16:30] <cjwatson> (NOT i18n)
[16:30] <cjwatson> the traceback amounts to "you aren't a translations admin", but you should be
[16:30] <KaZeR> 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] <dobey> KaZeR: so you're only uploading the template? why not just configure lp to automatically get it?
[16:39] <KaZeR> 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] <dobey> oh, it's not in the source tree?
[16:39] <KaZeR> nop, it's build automatically during compilation
[16:40] <KaZeR> i want to have our CI server push the updates to launchpad
[16:43] <dobey> well i get a 403
[16:43] <dobey> which makes sense
[16:44] <dobey> but on the other hand, why is this using the firefox cookies db for auth
[16:44] <KaZeR> that's what's in the doc :)
[16:49] <dobey> yeah, i wasn't asking why you were. i was asking why the code was :)
[16:50] <KaZeR> ha :D
[16:50] <dobey> looks like the API doesn't quite have a way to upload a template :-/
[16:50] <KaZeR> 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] <KaZeR> my script does not use the api, it really uses the form to upload
[16:51] <dobey> right. as does the translations-lp-upload tool
[16:53] <KaZeR> 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] <KaZeR> 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] <dpm> cjwatson, looking at it now
[17:11] <dpm> dobey, so yeah, it seems you have answered the questions yourself
[17:11] <dpm> in summary, we're jumping through hoops a bit as a workaround for not having an API
[17:12] <dpm> although IIRC, support for managing templates was added a while ago to the API
[17:12]  * dpm looks
[17:13] <dobey> i don't see it in the stable api docs at least
[17:14] <dpm> 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] <cjwatson> being the project owner implies having the launchpad.TranslationsAdmin permission on the project
[17:14] <cjwatson> see lib/lp/security.py:AdminProjectTranslations
[17:15] <cjwatson> assuming that's being checked on the right object, at least
[17:15] <dpm> ok
[17:16] <cjwatson> hm, actually, that's not the right permission class
[17:16] <dpm> 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] <cjwatson> it'd be EditPOTemplateDetails, I think
[17:16] <dpm> (re: the question whether there is API we can use for uploading)
[17:17] <cjwatson> still, owner of the product should suffice
[17:17] <dpm> ok
[18:02] <teward> there's no way to track multiple bugs from Debian per bug is there?
[18:02] <teward> (in Ubuntu bugs)
[18:05] <dobey> not in the same package
[18:05] <dobey> if they are in different packages in debian/ubuntu, you should be able to add each debian bug separately as a task
[18:06] <teward> problem is the Ubuntu bug ends up covering two Debian bugs, in the same package
[18:06] <teward> so meh
[18:06] <dobey> should probably be two ubuntu bugs then, or one debian bug should be marked a dup of the other
[18:06] <teward> mmm
[18:07] <teward> 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] <teward> not important, i'll just add a note about it being related via comments
[18:26] <sidi> is there a way to transfer the ownership of a PPA to a team?
[18:27] <cjwatson> 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] <sidi> cjwatson, i see, thanks
[18:28] <cjwatson> 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] <sidi> 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] <sidi> 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] <sidi> 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 ;-)
[22:43] <DalekSec> cjwatson: You're likely about to have a problem in the channel.
[22:52] <DalekSec> wgrant: Thanks.
[23:09] <KaZeR> wgrant: what about setting +t ?
[23:09] <teward> i said that yesterday and they said "Not a frequent enough issue"
[23:09] <wgrant> KaZeR: I don't see value in +t
[23:09] <teward> (in multiple channels)
[23:09] <wgrant> This happens maybe twice a year.
[23:09] <KaZeR> np, it's up to you.
[23:09] <wgrant> It's far more valuable that someone can come along and put an outage announcement in the topic, for example.
[23:10] <KaZeR> that makes sense