From 40f8ac241d0c8566925092de2ee42a2369ba0577 Mon Sep 17 00:00:00 2001 From: Chris Ball Date: Tue, 22 Jun 2010 20:00:36 -0400 Subject: 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. --- interfaces/web/web.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'interfaces/web') 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', -- cgit