Opened 16 years ago

Closed 15 years ago

Last modified 13 years ago

#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)

handlerXXX_callable.diff (2.0 KB ) - added by Dan Watson 16 years ago.
Patch and doc updates
handlerXXX_callable.2.diff (4.4 KB ) - added by Andy Durdin 16 years ago.
Updated patch against r10682; updated version in docs to 1.2; added tests.

Download all attachments as: .zip

Change History (9)

comment:1 by Jacob, 16 years ago

milestone: 1.1
Triage Stage: UnreviewedAccepted

by Dan Watson, 16 years ago

Attachment: handlerXXX_callable.diff added

Patch and doc updates

comment:2 by Dan Watson, 16 years ago

Has patch: set
Keywords: handler404 handler500 callable added

comment:3 by Eric Holscher, 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 Jacob, 16 years ago

milestone: 1.11.2

by Andy Durdin, 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 Andy Durdin, 16 years ago

Needs tests: unset
Triage Stage: AcceptedReady for checkin

Trac patch viewer is failing again, but the patch does download and apply correctly.

comment:6 by Jacob, 15 years ago

Resolution: fixed
Status: newclosed

(In [11854]) Fixed #10326: handler500 and handler404 may now be callables. Thanks, dcwatson, adurdin.

comment:7 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top