webapp/error.py uses self.request.response.setStatus() in __init__ and that's bad
Bug #60211 reported by
Matthew Paul Thomas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
<mpt> oh, I can [use self.request.
<SteveA> don't do anything in __init__
<mpt> that's what error.py does
<SteveA> then it is wron[g]
Changed in launchpad: | |
status: | Unconfirmed → Confirmed |
visibility: | private → public |
To post a comment you must log in.
They should be LaunchpadView classes instead, and set the status in initialize().