I believe I've fixed everything now. Latest incremental diff:
=== modified file 'lib/lp/bugs/browser/bugtarget.py'
--- lib/lp/bugs/browser/bugtarget.py 2010-01-20 18:27:12 +0000
+++ lib/lp/bugs/browser/bugtarget.py 2010-01-21 17:51:36 +0000
@@ -1264,12 +1264,13 @@
hot_bugs = []
count = 0
for task in bugtasks:
- if task.bug not in hot_bugs:
+ # Ensure we only represent a bug once in the list.
+ if task.bug not in [hot_task.bug for hot_task in hot_bugs]:
if count < 10:
- hot_bugs.append(task.bug)
+ hot_bugs.append(task) count += 1
- elif count == 10:
- return hot_bugs
+ else:
+ break
return hot_bugs
=== modified file 'lib/lp/bugs/stories/bugs/xx-product-bugs-page.txt'
--- lib/lp/bugs/stories/bugs/xx-product-bugs-page.txt 2010-01-20 20:52:20 +0000
+++ lib/lp/bugs/stories/bugs/xx-product-bugs-page.txt 2010-01-21 17:56:06 +0000
@@ -203,8 +203,8 @@
#21 Summary for new bug 6 New Undecided ...
-Fix released bugs are not shown. We demonstrate this by setting the bugtask
-for bug 18 to be "Fix released".
+Fix Released bugs are not shown. We demonstrate this by setting the bugtask
+for bug 18 to be "Fix Released".
>>> from lp.bugs.interfaces.bug import BugTaskStatus, IBugSet
>>> from lp.registry.interfaces.person import IPersonSet
@@ -215,7 +215,7 @@
... BugTaskStatus.FIXRELEASED, project_owner)
>>> logout()
-And then reloading the page. The Fix released bug, bug 18, is no longer shown.
+And then reloading the page. The Fix Released bug, bug 18, is no longer shown.
I believe I've fixed everything now. Latest incremental diff:
=== modified file 'lib/lp/ bugs/browser/ bugtarget. py' bugs/browser/ bugtarget. py 2010-01-20 18:27:12 +0000 bugs/browser/ bugtarget. py 2010-01-21 17:51:36 +0000 append( task.bug) append( task)
count += 1
--- lib/lp/
+++ lib/lp/
@@ -1264,12 +1264,13 @@
hot_bugs = []
count = 0
for task in bugtasks:
- if task.bug not in hot_bugs:
+ # Ensure we only represent a bug once in the list.
+ if task.bug not in [hot_task.bug for hot_task in hot_bugs]:
if count < 10:
- hot_bugs.
+ hot_bugs.
- elif count == 10:
- return hot_bugs
+ else:
+ break
return hot_bugs
=== modified file 'lib/lp/ bugs/model/ bugtask. py' bugs/model/ bugtask. py 2010-01-19 22:34:00 +0000 bugs/model/ bugtask. py 2010-01-21 20:45:05 +0000
"number_ of_duplicates" : "Bug.number_ of_duplicates" ,
"message_ count": "Bug.message_ count",
"users_ affected_ count": "Bug.users_ affected_ count",
--- lib/lp/
+++ lib/lp/
@@ -1257,7 +1257,7 @@
- "heat": "Bug.hotness",
+ "heat": "Bug.heat",
}
_open_ resolved_ upstream = """
=== modified file 'lib/lp/ bugs/stories/ bugs/xx- product- bugs-page. txt' bugs/stories/ bugs/xx- product- bugs-page. txt 2010-01-20 20:52:20 +0000 bugs/stories/ bugs/xx- product- bugs-page. txt 2010-01-21 17:56:06 +0000
--- lib/lp/
+++ lib/lp/
@@ -203,8 +203,8 @@
#21 Summary for new bug 6 New Undecided ...
-Fix released bugs are not shown. We demonstrate this by setting the bugtask
-for bug 18 to be "Fix released".
+Fix Released bugs are not shown. We demonstrate this by setting the bugtask
+for bug 18 to be "Fix Released".
>>> from lp.bugs. interfaces. bug import BugTaskStatus, IBugSet interfaces. person import IPersonSet FIXRELEASED, project_owner)
>>> from lp.registry.
@@ -215,7 +215,7 @@
... BugTaskStatus.
>>> logout()
-And then reloading the page. The Fix released bug, bug 18, is no longer shown.
+And then reloading the page. The Fix Released bug, bug 18, is no longer shown.
>>> anon_browser. reload( )
>>> print extract_text(
=== modified file 'lib/lp/ bugs/templates/ bugtarget- bugs.pt' bugs/templates/ bugtarget- bugs.pt 2010-01-20 18:16:50 +0000 bugs/templates/ bugtarget- bugs.pt 2010-01-21 17:33:54 +0000 "bug/default_ bugtask/ bug/id" /> "bugtask/ bug/id" /> "href bug/default_ bugtask/ fmt:url" "bug/default_ bugtask/ bug/title" /> "href bugtask/fmt:url" "bugtask/ bug/title" /> "class string: status$ {bug/default_ bugtask/ status/ name}" "bug/default_ bugtask/ status/ title" /> "class string: status$ {bugtask/ status/ name}" "bugtask/ status/ title" /> importance$ {bug/default_ bugtask/ importance/ name}" "bug/default_ bugtask/ importance/ title" /> "bug/default_ bugtask/ bug/date_ last_updated/ fmt:displaydate " /> importance$ {bugtask/ importance/ name}" "bugtask/ importance/ title" /> "bugtask/ bug/date_ last_updated/ fmt:displaydate " />
--- lib/lp/
+++ lib/lp/
@@ -113,23 +113,23 @@
</tr>
</thead>
<tbody>
- <tr tal:repeat="bug view/hot_bugs">
+ <tr tal:repeat="bugtask view/hot_bugs">
<td class="icon left">
<img alt="" src="/@@/bug" />
</td>
<td style="text-align: right">
- #<span tal:replace=
+ #<span tal:replace=
</td>
<td>
- <a tal:attributes=
- tal:content=
+ <a tal:attributes=
+ tal:content=
</td>
- <td tal:attributes=
- tal:content=
+ <td tal:attributes=
+ tal:content=
<td tal:attributes="
- class string:
- tal:content=
- <td tal:content=
+ class string:
+ tal:content=
+ <td tal:content=
</tr>
</tbody>
</table>