Merge lp:~abentley/launchpad/data-download-view into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | j.c.sackett on 2012-01-26 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 14739 |
| Proposed branch: | lp:~abentley/launchpad/data-download-view |
| Merge into: | lp:launchpad |
| Prerequisite: | lp:~abentley/launchpad/bugcomment-as-icomment |
| Diff against target: |
354 lines (+120/-54) 12 files modified
lib/lp/registry/browser/__init__.py (+4/-9) lib/lp/registry/browser/codeofconduct.py (+10/-18) lib/lp/registry/browser/person.py (+1/-1) lib/lp/registry/browser/product.py (+1/-1) lib/lp/registry/browser/productrelease.py (+1/-1) lib/lp/registry/browser/productseries.py (+1/-1) lib/lp/registry/browser/tests/test_codeofconduct.py (+22/-1) lib/lp/registry/browser/tests/test_person.py (+17/-0) lib/lp/registry/browser/tests/test_product.py (+17/-0) lib/lp/registry/stories/productrelease/xx-productrelease-rdf.txt (+11/-11) lib/lp/registry/stories/productseries/xx-productseries-rdf.txt (+11/-11) lib/lp/services/webapp/publisher.py (+24/-0) |
| To merge this branch: | bzr merge lp:~abentley/launchpad/data-download-view |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| j.c.sackett (community) | 2012-01-26 | Approve on 2012-01-26 | |
| Richard Harding (community) | code* | 2012-01-26 | Approve on 2012-01-26 |
|
Review via email:
|
|||
Commit Message
Extract DataDownloadView
Description of the Change
= Summary =
Extract DataDownloadView from CodeOfConductDo
== Proposed fix ==
See above
== Pre-implementation notes ==
Discussed Content-type change with sinzui.
== Implementation details ==
Changed Content-Type of downloaded CoC from the fictitious 'application/text' to the standard 'text/plain'. We believe this was a hack to ensure users were prompted to save the CoC, but the Content-disposition of "attachment" achieves this well.
The filename parameter of the Content-disposition header is now always quoted, in compliance with the RFC.
Changed the indentation of a couple of test cases, to fix lint errors.
Subclasses of BaseRdfView must now specify the extension, as well as the rest
of the filename.
== Tests ==
bin/test -t test_codeofconduct -t test_person -t test_product -t xx-productrelea
== Demo and Q/A ==
Visit https:/
Visit https:/
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/

I have nothing to add. This is a very solid change, thanks Aaron.