diff options
author | Chris Ball <cjb@laptop.org> | 2010-06-22 20:00:36 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-06-22 20:00:36 -0400 |
commit | 40f8ac241d0c8566925092de2ee42a2369ba0577 (patch) | |
tree | b318eb4f8365c5f7b9457e210921093e5242c15f | |
parent | d9fa7befee7309245799b81bc85c6d0d47426f23 (diff) | |
download | bugseverywhere-40f8ac241d0c8566925092de2ee42a2369ba0577.tar.gz |
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.
-rw-r--r-- | interfaces/web/web.py | 4 |
1 files changed, 3 insertions, 1 deletions
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', |