cfbe: API: Use bug.severity == target instead of bug.target. (FIXME)
authorChris Ball <cjb@laptop.org>
Wed, 23 Jun 2010 00:00:36 +0000 (20:00 -0400)
committerChris Ball <cjb@laptop.org>
Wed, 23 Jun 2010 00:00:36 +0000 (20:00 -0400)
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

index c95cf470b767518cdd9259e1dcaf8c598911af05..5007ac19a19167f6de033efd5a03dd33464c3c92 100644 (file)
@@ -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',