LaunchpadMenus doesn't appear to allow for having a tab selected when viewing a page that isn't in the menu options
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
Steve Alexander |
Bug Description
I have an IBugTaskSubset, with four pages hanging off it:
1. +index -- simple search
2. "../+filebug" -- not relevant to this problem
3. +advanced -- advanced search
4. +results -- the search results page
I have defined this menu:
class MaloneApplicati
"""Malone application menu when viewing an IBugTaskSubset."""
usedfor = IBugTaskSubset
facet = "bugs"
links = ["context_bugs", "filebug", "showreports"]
def context_bugs(self):
target = ""
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 Link(target, text, summary)
def _get_context_
"""Return the canonical URL of the IBugTaskSubset.
return canonical_
As you can see, there is no link that has the target "+results". However I want to tell the menu system that, when viewing the link:
http://
the tab "Show Reports" should be highlighted.
Given that the link above is not one of the menu options, there appears to be no way to be able to say this.
Changed in launchpad: | |
assignee: | nobody → stevea |
status: | New → Accepted |
description: | updated |
description: | updated |
Changed in launchpad: | |
status: | Accepted → Fixed |