diff options
author | Will Woods <wwoods@redhat.com> | 2008-03-25 18:32:44 -0400 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2008-03-25 18:32:44 -0400 |
commit | c98f4dc5a25b62ab5d0edf33ebadcd89f7fcf75e (patch) | |
tree | 11e011b8c3e005eb98ff949cbad7d6e00ab823ce /bugzilla/base.py | |
parent | 091e7386f730c17961e8c3b4d80fcf667d29d718 (diff) | |
download | python-bugzilla-c98f4dc5a25b62ab5d0edf33ebadcd89f7fcf75e.tar.gz python-bugzilla-c98f4dc5a25b62ab5d0edf33ebadcd89f7fcf75e.tar.xz python-bugzilla-c98f4dc5a25b62ab5d0edf33ebadcd89f7fcf75e.zip |
Improve Bugzilla3 class - getbug() works now! I think!
Diffstat (limited to 'bugzilla/base.py')
-rw-r--r-- | bugzilla/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bugzilla/base.py b/bugzilla/base.py index 6fb8f89..18da60a 100644 --- a/bugzilla/base.py +++ b/bugzilla/base.py @@ -713,6 +713,10 @@ class Bug(object): desc = self.short_short_desc else: desc = self.short_desc + # Some BZ3 implementations give us an ID instead of a name. + if 'assigned_to' not in self.__dict__: + if 'assigned_to_id' in self.__dict__: + self.assigned_to = self.bugzilla._getuserforid(self.assigned_to_id) return "#%-6s %-10s - %s - %s" % (self.bug_id,self.bug_status, self.assigned_to,desc) def __repr__(self): |