Credentials: Please provide information about users service_root and/or access level

Bug #270393 reported by Markus Korn
2
Affects Status Importance Assigned to Milestone
launchpadlib
Triaged
Low
Unassigned

Bug Description

I have different credential files for different applications and access level on my system, they look like

[1]
consumer_secret =
access_token = abcdef
consumer_key = launchpadfs
access_secret = xxxxxxxxxxxxxxxxxxxxxxxx

and I'm often asking myself which launchpad service I can access on which level with credentials created by loading this file.

So it would be nice to have extra values like

service_root = https://api.staging.launchpad.net/beta/
access_level = read_public

and make the accessible like:

>>> credentials = Credentials()
>>> credentials.load(open("some-file.txt"))
>>> credentials.service_root
'https://api.staging.launchpad.net/beta/'
>>> credentials.access_level
'read_public'

Markus

Related branches

Changed in launchpadlib:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Markus Korn (thekorn) wrote :

In rev 32 of the attached branch I added an additional attribute "service_root" to credentials.

Changed in launchpadlib:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.