Merge lp:~abentley/launchpad/fix-banner into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Aaron Bentley on 2012-09-12 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15959 |
| Proposed branch: | lp:~abentley/launchpad/fix-banner |
| Merge into: | lp:launchpad |
| Diff against target: |
145 lines (+60/-2) 5 files modified
lib/lp/blueprints/browser/tests/test_specification.py (+22/-0) lib/lp/blueprints/model/specification.py (+2/-1) lib/lp/registry/interfaces/informationtype.py (+21/-0) lib/lp/services/webapp/publisher.py (+12/-1) lib/lp/testing/factory.py (+3/-0) |
| To merge this branch: | bzr merge lp:~abentley/launchpad/fix-banner |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Deryck Hodge (community) | 2012-09-12 | Approve on 2012-09-12 | |
|
Review via email:
|
|||
Commit Message
Fix privacy banner for Specification.
Description of the Change
= Summary =
The privacy banner shows for Specification pages, but only +index describes information type.
== Proposed fix ==
Make all views that have Specification as their context work.
== Pre-implementation notes ==
None
== LOC Rationale ==
Part of private projects
== Implementation details ==
Provide a default implementation of LaunchpadView.
== Tests ==
bin/test -t est_view_banner spec
== Demo and Q/A ==
Create a Proprietary blueprint. Go to every related page. Their banners should all say the page contains Proprietary information.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/

As mentioned on IRC, consider making the test more specific to ensure the phrase is actually in the banner and not somewhere else in browser.contents. Otherwise, this looks great. I particularly like the IInformationType approach to this.