Part of canonical.launchpad.webapp.tales View In Hierarchy
Known subclasses: canonical.launchpad.webapp.tales.BranchFormatterAPI, canonical.launchpad.webapp.tales.BugTrackerFormatterAPI, canonical.launchpad.webapp.tales.BugWatchFormatterAPI, canonical.launchpad.webapp.tales.CustomizableFormatter, canonical.launchpad.webapp.tales.LanguageFormatterAPI, canonical.launchpad.webapp.tales.LinkFormatterAPI, canonical.launchpad.webapp.tales.PackageBuildFormatterAPI, canonical.launchpad.webapp.tales.PackageDiffFormatterAPI, canonical.launchpad.webapp.tales.PersonFormatterAPI, canonical.launchpad.webapp.tales.POFileFormatterAPI, canonical.launchpad.webapp.tales.ProductReleaseFileFormatterAPI, canonical.launchpad.webapp.tales.SeriesSourcePackageBranchFormatter, canonical.launchpad.webapp.tales.TranslationGroupFormatterAPI, lp.code.browser.diff.DiffFormatterAPI
Implements interfaces: zope.traversing.interfaces.ITraversable
Method | __init__ | Undocumented |
Method | url | Return the object's canonical URL. |
Method | api_url | Return the object's (partial) canonical web service URL. |
Method | traverse | Undocumented |
Method | link | Return an HTML link to the object's page. |
Method | public_private_css | Return the CSS class that represents the object's privacy. |
Method | pagetitle | The page title to be used. |
Parameters | view_name | If not None, return the URL to the page with that name on this object. |
rootsite | If not None, return the URL to the page on the specified rootsite. Note this is available only for subclasses that allow specifying the rootsite. |
This method returns everything that goes after the web service version number. Effectively the canonical URL but only the relative part with no site.
The link consists of an icon followed by the object's name.
Parameters | view_name | If not None, the link will point to the page with that name on this object. |
rootsite | If not None, return the URL to the page on the specified rootsite. Note this is available only for subclasses that allow specifying the rootsite. |
By default, reverse breadcrumbs are always used if they are available. If not available, then the view's .page_title attribute or entry in pagetitles.py (deprecated) is used. If breadcrumbs are available, then a view can still choose to override them by setting the attribute .override_title_breadcrumbs to True.