adding "status" and "importance" attribute to Bug
Bug #108849 reported by
Markus Korn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bug Helper |
Fix Released
|
Wishlist
|
Markus Korn |
Bug Description
The constructor of Bug looks like:
def __init__(self, bugnumber, sourcepackage=None, attachments_
The name of the second argument "bugnumber" is misleading: in most cases "bugnumber" is an instance of BugInfo, but it also can be a simple number. I would suggest to change the name into "bug" and use the fact that "bug" can be an instance of BugInfo to add a "status" and a "importance" attribute to Bug().
Markus
To post a comment you must log in.
This patch against bughelper.main r152 changes the constructor of Bug() and adds "status"- and "importance" -attribute to the Bug object.
If bug is an integer then .status and .importance are "None".
This patch should be committed to all bughelper branches, I already commited it to the xpath branch.
Markus