Merge lp:~mwhudson/wikkid/missing-404 into lp:wikkid
Proposed by
Michael Hudson-Doyle
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Tim Penhey | ||||
Approved revision: | 53 | ||||
Merged at revision: | 54 | ||||
Proposed branch: | lp:~mwhudson/wikkid/missing-404 | ||||
Merge into: | lp:wikkid | ||||
Diff against target: |
36 lines (+14/-1) 2 files modified
wikkid/view/base.py (+9/-1) wikkid/view/missing.py (+5/-0) |
||||
To merge this branch: | bzr merge lp:~mwhudson/wikkid/missing-404 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey | Approve | ||
Review via email: mp+41407@code.launchpad.net |
Description of the change
This branch makes missing pages 404s at the http level.
I add an extension point to the base view to allow the response creation to be customized by a view. There were many things that would have been sufficient for what I needed here, so I went for something pretty simple.
No tests, because the missing and base views doesn't seem to be tested at all. Happy to be corrected if I've missed them, or write some!
To post a comment you must log in.
I've taken this and tweaked it slightly. Thanks.