Menu system selects a tab that I didn't ask to be selected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Invalid
|
Medium
|
Steve Alexander |
Bug Description
I have defined a menu for bug task pages like this:
class BugTaskPageMenu
"""Malone application menu when viewing an IBugTask."""
usedfor = IBugTask
def context_bugs(self):
target = self._get_
text = "%s Bugs" % context_title
summary = "Bugs in %s" % context_title
return Link(target, text, summary)
def filebug(self):
filebug_url = self._get_
target = filebug_url
text = "Report a Bug"
summary = "Report a Bug in %s" % context_title
return Link(target, text, summary)
def showreports(self):
bugs_url = self._get_
# XXX: Brad Bollenbach, 2005-07-15: This URL is a workaround
# until the following bug is fixed:
#
# https:/
target = bugs_url + "/+advanced"
text = "Show Reports"
summary = "Show Reports for %s" % context_title
return showreports_link
def _get_task_
return canonical_
When I view the URL:
http://
I expect to see only the "Show Reports" tab selected. Instead, I see *both* the "Mozilla Firefox Bugs" and the "Show Reports" tab selected.
Here is the +debug-menus output for the latter URL:
Request
* http://
Facets
* Overview
o url: http://
o target:
o selected: False
o linked: True
o text: Overview
o summary: General information about Mozilla Firefox
* Bugs
o url: http://
o target: +bugs
o selected: True
o linked: True
o text: Bugs
o summary: Bugs reported about Mozilla Firefox
* Translations
o url: http://
o target: +translations
o selected: False
o linked: True
o text: Translations
o summary: Translations of Mozilla Firefox in Rosetta
Menus
* Mozilla Firefox Bugs
o url: http://
o target: http://
o selected: True
o linked: True
o text: Mozilla Firefox Bugs
o summary: Bugs in Mozilla Firefox
* Report a Bug
o url: http://
o target: http://
o selected: False
o linked: True
o text: Report a Bug
o summary: Report a Bug in Mozilla Firefox
* Show Reports
o url: http://
o target: http://
o selected: True
o linked: True
o text: Show Reports
o summary: Show Reports for Mozilla Firefox
Changed in launchpad: | |
assignee: | nobody → stevea |
status: | New → Accepted |
description: | updated |
The concept of "selected menu" has been removed from application menus. It is only present in facet menus. Closing this bug.