/srv/irclogs.ubuntu.com/2015/04/02/#launchpad.txt

=== mgz is now known as mgz_
grue_pmcjwatson: hey col10:58
cjwatsongrue_pm: hi10:59
KaZeRhi cjwatson15:41
KaZeRis there a launchpad admin around? I'm having some issues with uploading translations from a script16:08
cjwatsonslightly still around but really busy as last day before holidays, with you in a bit16:11
KaZeRthanks cjwatson16:17
cjwatsondpm: ^- 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-side16:22
KaZeRcjwatson: 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-tools16:23
cjwatsonKaZeR: it's going to take me more time to sync the logs than I have left, so I doubt I could contribute anything16:27
cjwatsontoday at least16:28
KaZeRok i understand. i thought that you had direct access to the logs16:28
dobeyKaZeR: what is the actual problem?16:28
dobeyKaZeR: is it soem command i can run here for example?16:28
cjwatsonI have direct-ish access, but only by rsync and that takes a while because there are lots of individual very large files16:28
KaZeRdobey: 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.sqlite16:29
KaZeR2015-03-31 18:27:31,283 ERROR Template upload failed (error 500, URL https://translations.launchpad.net/navit/trunk/+pots/navit/+upload)16:29
dobeywhtere does ubuntu-i18n-tools come from?16:30
cjwatsonlp:ubuntu-l10n-tools16:30
KaZeRcjwatson: found this yesterday in the logs : http://paste.ubuntu.com/10719491/16:30
cjwatson(NOT i18n)16:30
cjwatsonthe traceback amounts to "you aren't a translations admin", but you should be16:30
KaZeRdobey: if you know of a better script / tool /workflow i'm interested, but this is the only tool i found so far16:30
dobeyKaZeR: so you're only uploading the template? why not just configure lp to automatically get it?16:38
KaZeRdobey: i'd love that. the only other way i found in the doc was to use a bzr branch, but we don't use bazaar16:39
dobeyoh, it's not in the source tree?16:39
KaZeRnop, it's build automatically during compilation16:39
KaZeRi want to have our CI server push the updates to launchpad16:40
dobeywell i get a 40316:43
dobeywhich makes sense16:43
dobeybut on the other hand, why is this using the firefox cookies db for auth16:44
KaZeRthat's what's in the doc :)16:44
dobeyyeah, i wasn't asking why you were. i was asking why the code was :)16:49
KaZeRha :D16:50
dobeylooks like the API doesn't quite have a way to upload a template :-/16:50
KaZeRi 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:50
KaZeRmy script does not use the api, it really uses the form to upload16:51
dobeyright. as does the translations-lp-upload tool16:51
KaZeRusing 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:53
KaZeRi 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 )16:54
dpmcjwatson, looking at it now17:09
dpmdobey, so yeah, it seems you have answered the questions yourself17:11
dpmin summary, we're jumping through hoops a bit as a workaround for not having an API17:11
dpmalthough IIRC, support for managing templates was added a while ago to the API17:12
* dpm looks17:12
dobeyi don't see it in the stable api docs at least17:13
dpmI'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
cjwatsonbeing the project owner implies having the launchpad.TranslationsAdmin permission on the project17:14
cjwatsonsee lib/lp/security.py:AdminProjectTranslations17:14
cjwatsonassuming that's being checked on the right object, at least17:15
dpmok17:15
cjwatsonhm, actually, that's not the right permission class17:16
dpmah, 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_template17:16
cjwatsonit'd be EditPOTemplateDetails, I think17:16
dpm(re: the question whether there is API we can use for uploading)17:16
cjwatsonstill, owner of the product should suffice17:17
dpmok17:17
tewardthere's no way to track multiple bugs from Debian per bug is there?18:02
teward(in Ubuntu bugs)18:02
dobeynot in the same package18:05
dobeyif they are in different packages in debian/ubuntu, you should be able to add each debian bug separately as a task18:05
tewardproblem is the Ubuntu bug ends up covering two Debian bugs, in the same package18:06
tewardso meh18:06
dobeyshould probably be two ubuntu bugs then, or one debian bug should be marked a dup of the other18:06
tewardmmm18:06
tewardmight 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
tewardnot important, i'll just add a note about it being related via comments18:07
sidiis there a way to transfer the ownership of a PPA to a team?18:26
cjwatsonsidi: 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
sidicjwatson, i see, thanks18:27
cjwatsonTechnically 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:28
sidicjwatson, 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 PPA18:36
sidii got myself confused for a second thinking I had made this PPA for ~sidi and not for the team, and hadn't yet noticed18:36
sidicjwatson, 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 ;-)18:37
=== mgz_ is now known as mgz
=== mattgrif_ is now known as mattgriffin
DalekSeccjwatson: You're likely about to have a problem in the channel.22:43
=== 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
DalekSecwgrant: Thanks.22:52
KaZeRwgrant: what about setting +t ?23:09
tewardi said that yesterday and they said "Not a frequent enough issue"23:09
wgrantKaZeR: I don't see value in +t23:09
teward(in multiple channels)23:09
wgrantThis happens maybe twice a year.23:09
KaZeRnp, it's up to you.23:09
wgrantIt's far more valuable that someone can come along and put an outage announcement in the topic, for example.23:09
KaZeRthat makes sense23:10

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