=== Ionic is now known as Guest28488 === ePierre__ is now known as ePierre === Guest28488 is now known as Ionic [03:13] Hi, could someone here handle my request? Thanks! https://answers.launchpad.net/launchpad/+question/670540 [03:48] handsome_feng: Done. [03:49] wgrant: Thank you very much! === mIk3_09 is now known as mIk3_08 [14:44] what's the right invocation to change the owner of a git_repository from the API? [14:45] I tried setting 'owner' and calling lp_save() on all the things but it didn't get updated [14:47] That ought to work. Do you have a transcript? [14:48] I'll run it again. [14:48] You should just need to call lp_save on the repository [14:49] https://paste.ubuntu.com/p/m4ZGPBFjNC/ [14:51] gits[0].lp_refresh() [14:52] Wait, what is gits in this case? [14:52] Can I have a more complete transcript? :P [14:52] I bet gits is a collection [14:52] It is, it's from getBranches() or something [14:53] Listify it first, or assign gits[0] to a variable [14:53] Otherwise the __getitem__ inside gits[0] does a separate fetch from the webservice each time and so forgets your changes [14:53] Bit of a gotcha with collections [14:53] Ahh, this is a peculiarity with LP programming that I'm not aware of [14:53] That works, thanks! [14:54] np, it's not at all obvious when you haven't encountered it before [14:54] Oh, but I've got to fix the subscribers too [14:55] You can call methods without this trick - it's only property assignments that are problematic [14:55] Though it may be a good idea anyway to avoid excessive webservice calls [14:56] https://help.launchpad.net/API/launchpadlib#Three_things_to_make_your_client_faster has a little trick to see what webservice calls are happening [15:00] That'll be useful, cheers [15:01] Good semantic use of HTTP error codes (409 in this case) [15:02] Yeah, the LP webservice is sort of what you get if you go all-out on REST design and kinda forget the performance bit