Bug
|
Size: 3178
Comment:
|
Size: 3165
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 59: | Line 59: |
| >>> bug.attachments.remove([i for i in bug.attachments.filter(test_filter)]) | >>> bug.attachments.remove(bug.attachments.filter(test_filter)) |
Bug - tutorial
General workflow
That is the way to use python-launchpad-bugs to get information on a bugreport or to edit a bugreport:
It is also possible to get a bugreport by its url:
3 >>> bug = Bug(url="https://bugs.launchpad.net/buglog-data/+bug/120593")
If you want to change the bugreport or view private bugs you have to set Bug.authentication:
4 >>> Bug.authentication="cookie.txt"
Attributes of a bugreport
Overview
add a table of all attributes
Attachments
Get a list of attachments:
As you can see there are four files attached to the bug and the first attachment has already been downloaded.
You can for example filter the list of attachments by the filename:
These filtered attachments can be easily removed:
To add an attachment you have to create an new attachment-object:
Now you have to add this attachment to the bugreport:
Comments
Get a list of comments:
Create a new comment and add this comment to the bugreport:
Commit changes
get a list of changes
commit changes
46 >>> bug.commit()
BugHelper/Dev/python-launchpad-bugs/Bug (last edited 2008-08-12 22:24:51 by c-24-21-234-111)