Merge lp:~salgado/launchpad/real-breadcrumbs into lp:launchpad
Proposed by
Guilherme Salgado
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Graham Binns | ||||||||
Approved revision: | no longer in the source branch. | ||||||||
Merged at revision: | not available | ||||||||
Proposed branch: | lp:~salgado/launchpad/real-breadcrumbs | ||||||||
Merge into: | lp:launchpad | ||||||||
Diff against target: | None lines | ||||||||
To merge this branch: | bzr merge lp:~salgado/launchpad/real-breadcrumbs | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | Approve | ||
Review via email: mp+10651@code.launchpad.net |
To post a comment you must log in.
= Summary =
The Breadcrumb adapter doesn't honor the rootsite specified in ICanonicalUrlData
== Proposed fix ==
Change Breadcrumb.rootsite into a property that looks for a rootsite for
its given object in the ICanonicalUrlData of that object, falling back
to 'mainsite' if it's not defined for that object.
This is a fix for bug 418214
== Tests ==
./bin/test -vvt test_breadcrumbs
== Demo and Q/A ==
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: /launchpad/ webapp/ tests/test_ breadcrumbs. py /launchpad/ webapp/ breadcrumb. py bugs/browser/ bugtask. py
lib/canonical
lib/canonical
lib/lp/
== Pylint notices ==
lib/lp/ bugs/browser/ bugtask. py
1232: [C0301] Line too long (79/78)
92: [F0401] Unable to import 'lazr.uri' (No module named uri)