Credentials: Please provide information about users service_root and/or access level
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 = xxxxxxxxxxxxxxx
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:/
access_level = read_public
and make the accessible like:
>>> credentials = Credentials()
>>> credentials.
>>> credentials.
'https:/
>>> credentials.
'read_public'
Markus
Related branches
- j.c.sackett (community): Needs Fixing
-
Diff: 158 lines (+112/-0) (has conflicts)2 files modifiedsrc/launchpadlib/credentials.py (+93/-0)
src/launchpadlib/launchpad.py (+19/-0)
Changed in launchpadlib: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in launchpadlib: | |
importance: | Medium → Low |
In rev 32 of the attached branch I added an additional attribute "service_root" to credentials.