[00:00] <jono> thanks wgrant
[00:00] <jono> what is the best way to check the output of 'membership' to see if the person is a member or not?
[00:03] <wgrant> jono: It's a list of team_membership objects that are either ubuntumembers or subteams of ubuntumembers.
[00:03] <wgrant> They're a member if that list has any items.
[00:03] <jono> right, but if I search using a username that doesn't exist I get a KeyError
[00:04] <wgrant> Right, lp.people['something'] will raise a KeyError if the person doesn't exist. You can use any person object (probably the one you got from getByEmail earlier) in place of lp.people['somebody']
[00:07] <jono> this also seems to work:
[00:07] <jono> try:
[00:07] <jono>         subteams = [team.name for team in lp.people['ubuntumembers'].sub_teams]
[00:07] <jono>         [membership for membership in lp.people[user].memberships_details  if membership.team_link.rsplit('~', 1)[-1] in ['ubuntumembers'] + subteams]
[00:07] <jono>         print membership
[00:07] <jono>     except KeyError:
[00:07] <jono>         print "not found"
[00:07] <jono> sorry for the paste
[00:08] <wgrant> Right, that would work too.
[00:08] <jono> thanks for the help wgrant
[00:08] <jono> I really appreciate it
[00:08] <wgrant> np
[00:13] <jono> I think there is a bug in the code wgrant
[00:13] <jono> oh hang on
[00:14] <jono> yeah, there is a problem
[00:14] <jono>         subteams = [team.name for team in lp.people['ubuntu-core-dev'].sub_teams]
[00:14] <jono>         [membership for membership in lp.people[user].memberships_details  if membership.team_link.rsplit('~', 1)[-1] in ['ubuntu-core-dev'] + subteams]
[00:14] <jono> also returns me as a member...I am definitely not a core-dev :-)
[00:16] <jono> ahh it looks like subteams is not returning anything
[00:25] <wgrant> jono: core-dev doesn't have any subteams, does it?
[00:26] <jono> wgrant, it doesnt look like it, and I worked around that a little
[00:26] <jono> will pastebin
[00:27] <jono> http://pastebin.ubuntu.com/843772/
[00:27] <jono> it still says I am a member
[00:29] <wgrant> jono: http://paste.ubuntu.com/843777/
[00:31] <jono> thanks wgrant
[00:31] <jono> just reading
[06:11] <PKHelloNasty> If I want to clone and project, make edits, push to my acocunt whats the commands I need?
[06:16] <wgrant> PKHelloNasty: https://help.launchpad.net/Code/FindingAndDownloading and https://help.launchpad.net/Code/UploadingABranch are probably what you want.
[06:16] <PKHelloNasty> wgrant, thanks.
[06:18] <PKHelloNasty> wgrant, Interesting that GNome-Do is the example they use, its what I am editing. :D
[06:19] <wgrant> Heh
[07:27] <czajkowski> aloha
[08:55] <asa-san> hi! I wonder if anyone could please help me with a launchpadlib login problem?
[09:01] <czajkowski> asa-san: morning
[09:02] <asa-san> czajkowski: morning! so here is my problem
[09:02] <czajkowski> asa-san: whats the problem ?
[09:02] <asa-san> I try to log into launchpad from a python application using login_with('my_app', 'staging')
[09:02] <asa-san> This worked fine for some time, but suddenly stopped working.
[09:02] <asa-san> Seems to be an authorization problem, turning on logs gives me this
[09:02] <asa-san> send: 'GET /1.0/gcc-linaro HTTP/1.1\r\nHost: api.staging.launchpad.net\r\nAuthorization: OAuth realm="OAuth", oauth_nonce="56899489", oauth_timestamp="1329292578", oauth_consumer_key="System-wide%3A%20Ubuntu%20%28asa-laptop%29", oauth_signature_method="PLAINTEXT", oauth_version="1.0", oauth_token="MdzQdNpTgdFntTcJtZZd", oauth_signature="%26qR4gpRp02G4XcVrh4Mk9dnkNs0FcpK7gwPZdfKKvnS1lN4bz5lTvKrzhSSD2ZNDgR6tpZDv5ctbQGB8g"\r\naccept-encoding: gzip, deflate\r
[09:02] <asa-san> \naccept: application/json\r\nuser-agent: lazr.restfulclient 0.11.1; application="taker"; oauth_consumer="System-wide: Ubuntu (asa-laptop)"\r\n\r\n'
[09:02] <asa-san> reply: 'HTTP/1.1 401 Unauthorized\r\n'
[09:02] <asa-san> I tried removing ~/.launchpad/* but that did not help.
[09:03] <czajkowski> has this just started to happen today ?
[09:04] <asa-san> well, it worked last week. When I started working yesterday it did not work
[09:04] <asa-san> so friday was the last time it worked...
[09:04] <czajkowski> ok let me ask and see
[09:04] <czajkowski> just  give me a few mins to find out
[09:04] <czajkowski> thanks
[09:04] <asa-san> thanks a lot
[09:06] <czajkowski> np
[09:08] <czajkowski> asa-san: so it seems staging gets reset over the weekend, so the credentials you used last week are not valid,  you also may need to remove the cached credentials.  hope that helps
[09:10] <asa-san> czajkowski: ok, thanks!  but I thought the credentials were stored in ~/.launchpad (by default)
[09:12] <wgrant> asa-san: On desktops they're stored in your desktop keyring.
[09:12] <wgrant> GNOME Keyring or KDE Wallet, usually.
[09:13] <asa-san> wgrant: OK, that might explain things, I will check
[09:30] <benonsoftware> Hello
[09:31] <benonsoftware> How long can I leave a licence as 'I don't know yet' in Launchpad?
[09:33] <czajkowski> benonsoftware: I'm not sure but I can get back to you as I'll be reivewing them later on with the person who normally does it
[09:34] <czajkowski> and I can get back to you if you like
[09:34] <benonsoftware> czajkowski: Yes please, as I am in charge of choosing a licence for a project but I would like to review each licence in detail
[09:36] <czajkowski> benonsoftware: can you drop me a mail laura.czajkowski@canonical.com and I will get back to you by tomorrow at the latest
[09:36] <benonsoftware> What would you like me to mention in the email?
[09:36] <czajkowski> projects and what licience you think it could be
[09:37] <benonsoftware> czajkowski: Ok, thanks for your help
[09:38] <czajkowski> np
[09:38] <czajkowski> sorry I can't be of more help just right now, but just started so need to make sure I give you the right information
[09:40] <benonsoftware> czajkowski: No worries, thanks :p
[10:00] <jml> Is codehosting down?
[10:01] <wgrant> jml: Launchpad is offline for 90 seconds of scheduled maintenance.
[10:01] <jml> 90s!
[10:01] <jml> I can't wait that long.
[10:02] <jml> actually, it's really heart-warming to hear
[10:02] <jml> so much better than 2hrs
[10:02] <wgrant> It's actually 75 seconds now, it seems.
[10:02] <wgrant> We dropped a replica yesterday which speeds things up.
[10:03] <wgrant> With a bit of luck it will be 30s soon :)
[10:03] <czajkowski> thats rather impressive
[10:40] <StevenK> jml: Your comment reminds me of the Simpsons: Moe: "I got it on loan from the US Army. It can flash-fry a buffalo in 40 seconds." Homer: "Awwww, 40 seconds? I want it now!"
[10:41] <jml> yeah :)
[10:41] <czajkowski> heh
[11:32] <asa-san> thanks czajkowski and wgrant for your help, it works again (sorry for delay in feedback)
[11:32] <czajkowski> asa-san: glad it worked
[18:44] <jaypipes> hello, any LP admins around that could assist with a project ID change? thx in advance!
[18:50] <lifeless> jaypipes: hey, whats up?
[18:53] <jaypipes> lifeless: Hi Robert, thx for response. We (and by we I mean people in marketing) changed the name of the project formerly known as FreeCloud to TryStack... and we were hoping to change the http://launchpad.net/freecloud to http://launchpad.net/trystack.
[18:56] <lifeless> jaypipes: you should be able to do that yourself, no ?
[18:57] <lifeless> https://launchpad.net/freecloud/+edit
[18:57] <jaypipes> lifeless: no, does not give me ability to change the ID, only display name and description.
[18:57] <lifeless> ok
[18:57] <lifeless> could you open a ticket please
[18:58] <lifeless> I will do immediately
[18:58] <jaypipes> lifeless: absolutely. link to where to submit ticket? sorry if I've asked this before :(
[19:00] <lifeless> ^topic :)
[19:00] <lifeless> Support: https://answers.launchpad.net/launchpad
[19:01] <jaypipes> lifeless: doh. sorry mate.
[19:02] <jaypipes> lifeless: cheers: https://answers.launchpad.net/launchpad/+question/187966
[19:02] <lifeless> de nda
[19:03] <lifeless> done, with an alias left behind
[19:03] <jaypipes> lifeless: you rock, as always. thx much!
[19:03] <lifeless> no probs
[19:15] <nati2> Hi folks
[19:15] <nati2> Can we have private mailing list on launchpad ?
[19:18] <lifeless> LP supports them yes; you need a commercial subscription
[19:19] <nati2> lifeless: Thanks!
[21:06] <pabelanger> Quick Q: Is there any was to setup DEB_BUILD_OPTIONS per PPA?
[21:58] <jono> hey all
[21:58] <jono> I am trying to branch and keep getting:
[21:58] <jono> ConnectionReset reading response for 'BzrDir.open_2.1', retrying
[21:58] <jono> Permission denied (publickey).
[21:58] <jono> bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.
[21:59] <jono> I imported my public key after I did bzr launchpad-login
[21:59] <jono> any idea how I fix this?
[22:00] <beuno> jono, sounds like a problem with launchpad
[22:01] <jono> hmmm
[22:03] <beuno> jono, actually, I think it's just you
[22:03] <beuno> works fine here
[22:04] <beuno> jono, try: sftp bazaar.launchpad.net
[22:05] <jono> jono@netbook:~$ sftp bazaar.launchpad.net
[22:05] <jono> Permission denied (publickey).
[22:05] <jono> Couldn't read packet: Connection reset by peer
[22:05] <jono> looks like my public key isnt working
[22:06] <beuno> yeap
[22:06] <mwhudson> ssh -v bazaar.launchpad.net -- is it offering the key you expect?
[22:06] <mwhudson> e.g. i see
[22:06] <mwhudson> debug1: Offering RSA public key: mwh@localhost
[22:06] <mwhudson> debug1: Server accepts key: pkalg ssh-rsa blen 149
[22:06]  * thumper high fives beuno
[22:06] <beuno> o/ thumper
[22:07] <jono> it pasted a lot of output and then says perm denied (public key)
[22:07] <jono> mwhudson, ^
[22:07] <mwhudson> jono: not useful :)
[22:07] <mwhudson> jono: pastebin it
[22:08] <jono> mwhudson, http://pastebin.ubuntu.com/845053/
[22:09] <jono> I think I might just need to add my key again
[22:09] <jono> maybe create a new key
[22:12] <jono> mwhudson, any idea?
[22:14] <jono> I am going to create new keys and try that
[22:15] <wgz> have you double checked the permissions on ~/.ssh ?
[22:15] <wgz> that can catch people out.
[22:15] <StevenK> No, that's not the problem
[22:15] <StevenK> Your username on LP is not jono
[22:16] <wgz> that's also true.
[22:16] <jono> StevenK, where does it get jono from?
[22:16] <jono> my email address?
[22:16] <wgz> bzr takes it from what you gave lp-login
[22:16] <jono> I set my bzr launchpad-login to jonobacon
[22:17] <StevenK> jono: ssh uses $USER by default
[22:17] <wgz> but testing with jonobacon@bazaar.launchpad.net is what you want
[22:18] <wgz> it would be nice if bzr was more user-friendly than plain ssh for debugging permissions errors, but that's alas not the case
[22:18] <jono> hmmm so what do I need to do?
[22:18] <StevenK> First, confirm that jonobacon@bazaar.launchpad.net works
[22:19] <wgz> you want the "No shells on this server." when sshing to that
[22:19] <StevenK> What I do is edit ~/.ssh/config to add 'Host bazaar.launchpad.net\nUser jonobacon\n'
[22:21] <lifeless> jono: 'ssh jonobacon@bazaar.launchpad.net'
[22:21] <jono> it looks like my new key is not in the keyserver yet
[22:21] <jono> so LP won't take it
[22:21] <lifeless> jono: gpg keys have nothing to do with this
[22:21] <mwhudson> wrong kind of key
[22:21] <lifeless> jono: you're going off in all kinds of wrong; slow down and be guided :P
[22:21] <mwhudson> if your key appears in launchpad.net/~/+sshkeys it's good
[22:22] <jono> lifeless, I am getting a little confused here - I create a key using gpg, added it to the keyserver and then I am using https://launchpad.net/~jonobacon/+editpgpkeys to add the key
[22:22] <lifeless> jono: yes you are confused :)
[22:23] <jono> so what do I need to do?
[22:23] <lifeless> jono:  'ssh jonobacon@bazaar.launchpad.net'
[22:23] <jono> <-- idiot
[22:23] <lifeless> jono: pastebin the output
[22:23] <mwhudson> jono: understand that gpg keys and ssh keys have nothing to do with each other
[22:23] <jono> permission denied
[22:23] <lifeless> jono: this is not pastebin.
[22:23] <jono> I am doing this on another machine other than my computer
[22:23] <lifeless> jono: pastebin is where you copy the entire output and put it on paste.ubuntu.com
[22:23] <jono> lifeless, it was one line: Permission denied (publickey)
[22:24] <lifeless> jono: thank you
[22:24] <jono> I have no ssh keys set up on this new machine
[22:24] <lifeless> so, you need to do so.
[22:24] <jono> can I use my ssh key from my main computer?
[22:24] <lifeless> you can either copy your ssh private key over
[22:24] <lifeless> or you can make a new one and add it to LP
[22:25] <jono> ok I copied my other key over
[22:25] <lifeless> try again
[22:25] <jono> now I get the no shells message
[22:25] <lifeless> great
[22:25] <lifeless> now
[22:25] <mwhudson> victory
[22:25] <lifeless> try bzr again
[22:25] <jono> success!
[22:26] <jono> so how does gpg fit into this?
[22:26] <jono> I was obviously confusing this
[22:26] <StevenK> It doesn't
[22:26] <StevenK> It is utterly seperate
[22:26] <jono> gotcha
[22:26] <jono> what are gpg keys used for?
[22:26] <jono> out of curiosity
[22:27] <StevenK> In LP's case, signing source packages and archives
[22:27] <jono> gotcha
[22:27] <jono> thanks, folks, for all your help :-)
[22:27] <StevenK> Oh, and the CoC
[22:27] <StevenK> Always forget about that
[22:28] <lifeless> it does not
[22:31] <lifeless> jono: you need a badge for this
[22:38] <jono> :-)
[22:39] <maco> i'm surprised you didn't get the badge for this back when you used a gpg key to sign the coc
[23:25] <sinzui> StevenK, I am back
[23:52] <jono> hey folks
[23:53] <jono> I am getting an SSLError: The read operation timed out error on a script I am using
[23:53] <jono> have you folks seen this error before?
[23:53] <jono> strangely the script works fine on one of my machines, but not the other