wrap py-lp-bugs around launchpadlib
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bug Helper |
New
|
Undecided
|
Unassigned | ||
python-launchpad-bugs |
New
|
Undecided
|
Unassigned |
Bug Description
launchpadlib is getting more and more usable on the bugs side. My idea is to wrap py-lp-bugs around launchpadlib, so the users of py-lp-bugs don't have to change their scripts to use the API. With the attached branch I created a new connection method for bug and buglist objects. To use the api connector just run:
>>> Bug = ConnectBug("api") #or
>>> BugList = ConnectBugList(
Don't forget: you always have to pass credentials to this objects as using the API without authentication is impossible.
>>> Bug.authentication = <credentials-
My plan is to merge this branch into .main as early as possible, but it is depending on a newer version of launchpadlib as the one in intrpid currently.
Markus
To use the api connector with bughelper/ bugnumbers apply the attached patch to the main branch of bughelper. Then it is possible to run things like:
$ ./bugnumbers -p bughelper --parsemode api --cookie credentials.txt
Markus