From: Chris Ball Date: Wed, 23 Jun 2010 00:00:36 +0000 (-0400) Subject: cfbe: API: Use bug.severity == target instead of bug.target. (FIXME) X-Git-Tag: 1.0.0~55^2~6 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=40f8ac241d0c8566925092de2ee42a2369ba0577;p=be.git cfbe: API: Use bug.severity == target instead of bug.target. (FIXME) FIXME: There are still many more instances of bug.target; I'm just going through tracebacks one at a time at the moment. --- diff --git a/interfaces/web/web.py b/interfaces/web/web.py index c95cf47..5007ac1 100644 --- a/interfaces/web/web.py +++ b/interfaces/web/web.py @@ -34,7 +34,9 @@ class WebInterface: possible_assignees.sort(key=unicode.lower) possible_targets = list(set( - [unicode(bug.target) for bug in self.bd if bug.target != EMPTY])) + [unicode(bug.summary.rstrip("\n")) for bug in self.bd \ + if bug.severity == u"target"])) + possible_targets.sort(key=unicode.lower) possible_statuses = [u'open', u'assigned', u'test', u'unconfirmed',