#10326 closed (fixed)
Allow handler500, handler404 to be callables
Reported by: | miracle2k | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | 1.0 |
Severity: | Keywords: | handler404 handler500 callable | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently, those are expected to be strings pointing to the view to use. A number of times now I've stumbled over this and thought it would be neat if I could just specify a callable, especially if the view is not much more than redirect to render_to_response.
Attachments (2)
Change History (9)
comment:1 by , 16 years ago
milestone: | → 1.1 |
---|---|
Triage Stage: | Unreviewed → Accepted |
by , 16 years ago
Attachment: | handlerXXX_callable.diff added |
---|
comment:2 by , 16 years ago
Has patch: | set |
---|---|
Keywords: | handler404 handler500 callable added |
comment:3 by , 16 years ago
Needs tests: | set |
---|
This patch needs tests. If someone could do that at some point, that'd be great, otherwise I'll do it.
comment:4 by , 16 years ago
milestone: | 1.1 → 1.2 |
---|
by , 16 years ago
Attachment: | handlerXXX_callable.2.diff added |
---|
Updated patch against r10682; updated version in docs to 1.2; added tests.
comment:5 by , 16 years ago
Needs tests: | unset |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Trac patch viewer is failing again, but the patch does download and apply correctly.
comment:6 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch and doc updates