Merge lp:~bac/launchpad/bug-490224-content-type into lp:launchpad
Proposed by
Brad Crittenden
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Curtis Hovey | ||||
Approved revision: | not available | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~bac/launchpad/bug-490224-content-type | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
116 lines (+71/-10) 4 files modified
lib/lp/bugs/model/bug.py (+0/-10) lib/lp/services/mime.py (+33/-0) lib/lp/services/tests/test_mime.py (+34/-0) lib/site.py (+4/-0) |
||||
To merge this branch: | bzr merge lp:~bac/launchpad/bug-490224-content-type | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Gary Poster (community) | code | Approve | |
Canonical Launchpad Engineering | Pending | ||
Review via email: mp+15862@code.launchpad.net |
Commit message
Customize the mimetypes standard library to support bzip2 encoding, which is missing in python2.5.
To post a comment you must log in.
= Summary =
The mimetypes standard library in python2.5 does not know about the bzip2 encoding.
This branch provides a centralized place for extending the library so that the
encoding is recognized which will allow files to be served properly.
== Proposed fix ==
Provide a 'customizedMime types' method and call it from site.py.
== Pre-implementation notes ==
Long chat with Gary and talks with Curtis.
== Implementation details ==
As above.
== Tests ==
bin/test -vvt test_mime
== Demo and Q/A ==
Add a .tar.bz2 file to a download and ensure it has the proper content type when
downloading using 'wget -S'
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: services/ tests/test_ mime.py services/ mime.py bugs/model/ bug.py
lib/lp/
lib/lp/
lib/site.py
lib/lp/
== Pylint notices ==
lib/lp/ bugs/model/ bug.py .event' (No module named lifecycle) .snapshot' (No module named lifecycle)
24: [F0401] Unable to import 'email.Utils' (No module named Utils)
37: [F0401] Unable to import 'lazr.lifecycle
39: [F0401] Unable to import 'lazr.lifecycle