adding "status" and "importance" attribute to Bug

Bug #108849 reported by Markus Korn
2
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_path=None, \
                 content_types=[], attachments_regex=None, cookie_file=None):

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

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

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

description: updated
Changed in bughelper:
assignee: nobody → thekorn
importance: Undecided → Wishlist
status: Unconfirmed → Fix Committed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Committed. I had uncommitted changes in my tree, sorry for the mess.

------------------------------------------------------------
revno: 154
committer: Daniel Holbach <email address hidden>
branch nick: bughelper.main
timestamp: Mon 2007-04-23 08:16:32 +0200
message:
  revert uncommitted changes
------------------------------------------------------------
revno: 153
committer: Daniel Holbach <email address hidden>
branch nick: bughelper.main
timestamp: Mon 2007-04-23 08:14:36 +0200
message:
  change Bug() constructor to either accept int or BugInfo, patch by Markus Korn
------------------------------------------------------------

Changed in bughelper:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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