summaryrefslogtreecommitdiffstats
path: root/bugzilla/base.py
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2008-03-25 18:32:44 -0400
committerWill Woods <wwoods@redhat.com>2008-03-25 18:32:44 -0400
commitc98f4dc5a25b62ab5d0edf33ebadcd89f7fcf75e (patch)
tree11e011b8c3e005eb98ff949cbad7d6e00ab823ce /bugzilla/base.py
parent091e7386f730c17961e8c3b4d80fcf667d29d718 (diff)
downloadpython-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.py4
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):