c.l.b.l.Hierarchy(LaunchpadView) : class documentation

Part of canonical.launchpad.browser.launchpad View In Hierarchy

Known subclasses: lp.code.browser.branch.BranchHierarchy, lp.code.browser.sourcepackagerecipe.SourcePackageRecipeHierarchy

The hierarchy part of the location bar on each page.
Method objects The objects for which we want breadcrumbs.
Method items Return a list of IBreadcrumb objects visible in the hierarchy.
Method makeBreadcrumbForRequestedPage Return an IBreadcrumb for the requested page.
Method display_breadcrumbs Return whether the breadcrumbs should be displayed.
Method _naked_context_view Return the unproxied view for the context of the hierarchy.
@property
def objects(self):
The objects for which we want breadcrumbs.
@cachedproperty
def items(self):
Return a list of IBreadcrumb objects visible in the hierarchy.

The list starts with the breadcrumb closest to the hierarchy root.

@property
def _naked_context_view(self):
Return the unproxied view for the context of the hierarchy.
def makeBreadcrumbForRequestedPage(self):
Return an IBreadcrumb for the requested page.

The IBreadcrumb for the requested page is created using the current URL and the page's name (i.e. the last path segment of the URL).

If the requested page (as specified in self.request) is the default one for our parent view's context, return None.

@property
def display_breadcrumbs(self):
Return whether the breadcrumbs should be displayed.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.