wrap py-lp-bugs around launchpadlib

Bug #274869 reported by Markus Korn
2
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("api")

Don't forget: you always have to pass credentials to this objects as using the API without authentication is impossible.

>>> Bug.authentication = <credentials-file.txt>

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

Revision history for this message
Markus Korn (thekorn) wrote :

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

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