Part of lp.app.browser.launchpad View In Hierarchy
Method | redirect_support | Redirect /support to launchpad Answers site. |
Method | redirect_legal | Redirect /legal to help.launchpad.net/Legal site. |
Method | redirect_faq | Redirect /faq to launchpad-project/+faqs. |
Method | redirect_feedback | Redirect /feedback to help.launchpad.net/Feedback site. |
Method | redirect_branch | Redirect /+branch/<foo> to the branch named 'foo'. |
Method | redirect_branch_or_repo | Redirect /+code/<foo> to the branch or repository named 'foo'. |
Method | redirect_buildfarm | Redirect old /+builds requests to new URL, /builders. |
Method | products | Undocumented |
Method | traverse | Undocumented |
Method | publishTraverse | Undocumented |
Method | _getBetaRedirectionView | Undocumented |
'foo' can be the unique name of the branch, or any of the aliases for the branch. If 'foo' resolves to an ICanHasLinkedBranch instance but the linked branch is not yet set, redirect back to the referring page with a suitable notification message. If 'foo' is completely invalid, redirect back to the referring page with a suitable error message.
'foo' can be the unique name of the branch/repo, or any of the aliases for the branch/repo.
If 'foo' is invalid, or exists but the user does not have permission to view 'foo', a NotFoundError is raised, resulting in a 404 error.
Unlike +branch, this works for both git and bzr repositories/branches.