Merge lp:~deryck/launchpad/honor-default-for-spec-sharing-policy-1052521 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Deryck Hodge on 2012-09-20 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 16029 |
| Proposed branch: | lp:~deryck/launchpad/honor-default-for-spec-sharing-policy-1052521 |
| Merge into: | lp:launchpad |
| Diff against target: |
216 lines (+149/-12) 2 files modified
lib/lp/blueprints/browser/specification.py (+22/-2) lib/lp/blueprints/browser/tests/test_specification.py (+127/-10) |
| To merge this branch: | bzr merge lp:~deryck/launchpad/honor-default-for-spec-sharing-policy-1052521 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| j.c.sackett (community) | 2012-09-18 | Approve on 2012-09-20 | |
|
Review via email:
|
|||
Commit Message
Ensure that default value for information_type when creating new blueprints honors the default for the give specification sharing policy.
Description of the Change
This branch fixes a bug where we were not selecting the correct information type by default when creating a new spec. This is mostly a set of tests to ensure we get the behavior we want, plus some minor changes to the specification form view.
The first change in the browser code is to set an information_type from the default if no value is present in the form data. Purely public or purely proprietary projects will not provide an option to set information_type, so this ensures we get the correct value when saving the form. The other browser code fix is to set initial values with the default, so that this value is selected by default when the form is created. It's just testing after that.

Looks good, Deryck.