Feature #170
Use PHILO_MIDDLEWARE in place of signals.
| Status: | New | Start date: | 07/11/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Core | |||
| Target version: | - |
Description
We currently provide a view_about_to_render signal, which is good. It lets developers take action when the page renders, such as inserting arbitrary values into the extra_context of the view. However, things like form handling are impossible, because a) one cannot guarantee that receivers will be processed in any particular order, and b) one cannot replace the returned response with e.g. an HttpResponseRedirect without overriding the view's actually_render_to_response method; this is extremely hackish.
I think it would be useful to use a middleware-like arrangement instead of signals.
History
#1
Updated by Stephen Burrows almost 2 years ago
- Subject changed from Use PHILO_MIDDLEWARE in place of settings. to Use PHILO_MIDDLEWARE in place of signals.
Whoops.