From: Steve Losh Date: Thu, 25 Jun 2009 21:38:02 +0000 (-0400) Subject: Fix cfbe to work with the latest version of be. X-Git-Tag: 1.0.0~53^2~4^2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=01d2ad07456974c3b4d4539a7b49f4af0916795b;p=be.git Fix cfbe to work with the latest version of be. --- diff --git a/web.py b/web.py index 7de7d3f..b9df64f 100644 --- a/web.py +++ b/web.py @@ -20,10 +20,12 @@ class WebInterface: def get_common_information(self): """Returns a dict of common information that most pages will need.""" - possible_assignees = list(set([bug.assigned for bug in self.bd if unicode(bug.assigned) != 'None'])) + possible_assignees = list(set( + [unicode(bug.assigned) for bug in self.bd if bug.assigned != 'None'])) possible_assignees.sort(key=unicode.lower) - possible_targets = list(set([bug.target for bug in self.bd if unicode(bug.target) != 'None'])) + possible_targets = list(set( + [unicode(bug.target) for bug in self.bd if bug.target != 'None'])) possible_targets.sort(key=unicode.lower) possible_statuses = [u'open', u'assigned', u'test', u'unconfirmed',