wgrant | banix: You can never seen email addresses anonymously, and even when logged in you can only see them if the user has allowed it. | 00:20 |
---|---|---|
banix | wgrant: thanks for answering. Makes sense. Then I should use login_with instead of login_anonymously? | 00:22 |
banix | wgrant: When I do that, can I authenticate programatically? If I use the login_with I am taken into the interactive interface that is what I don’t want | 00:23 |
wgrant | banix: It depends where you're going to run it. | 00:25 |
wgrant | banix: In a desktop environment, the token is stored in the DE's keyring so you only have to log in once. | 00:25 |
wgrant | If you're running it remotely without a DE it will use a standalone file. | 00:26 |
wgrant | When using it over SSH I normally kill the CLI browser that it spawns and open the URL it printed in my desktop browser. | 00:26 |
wgrant | And authorise it there, rather than logging in in w3m. | 00:26 |
wgrant | Once you've authorised a system, further login_withs from there will be non-interactive. | 00:27 |
banix | wgrant: I see; and that first time is done using the gui. | 00:27 |
banix | i mean the web interface | 00:27 |
banix | is there an API where I can provide my user id and password, and get a token or somethinga long that line? | 00:28 |
wgrant | banix: No, but you can open the URL it prints in any browser -- it doesn't need to be on the same system. | 00:30 |
wgrant | It misguidedly opens a browser by default, as if it were on a desktop, but you can just close that. | 00:30 |
banix | wgrant: thanks for being paitient with me. What URL you are referring to and when I open it, what do I get in return and how can I use that in my python script. | 00:32 |
banix | reading the above I think I understand what you are saying. I run my script on an Ubuntu box and it opens a wget screen I believe; so let’s say I authorize there, I can keep the login_with in my script and further runs will go through? | 00:35 |
wgrant | banix: Right, it only prompts the first time. | 00:39 |
wgrant | banix: For subsequent runs it uses the stored token. | 00:40 |
banix | wgrant: thank you for your help. I’ll try what you suggested. | 00:40 |
dobey | banix: you should not rely on the e-mail address of users being visible, or even correct, to verify if they are in a certain organization or not. you should use teams to manage groups of users. | 01:29 |
banix | dobey: yes that makes sense. We have a group but it turned out some of the members have not added themselves to the group; So I played with using email and of course some users don’t have their email address available. With the helps I got on this channel, I know a bit to write a couple of scripts. | 02:03 |
banix | dobey: I have been looking for a place where the API for launchpadlib is documented in its entirety. If there is such a place and if you have a pointer handy please share. Thanks again. | 02:04 |
wgrant | banix: https://api.launchpad.net/+apidoc/devel.html documents the LP API, https://help.launchpad.net/API/launchpadlib documents launchpadlib. | 03:08 |
wgrant | banix: launchpadlib reads the machine-parsable API definition provided by launchpad.net and exposes it as Python objects. | 03:08 |
banix | wgrant: Thank you! | 03:12 |
=== maclin1 is now known as maclin | ||
=== work_alkisg is now known as alkisg | ||
=== pietroalbini_ is now known as pietroalbini | ||
=== alkisg is now known as work_alkisg |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!