On 10/5/07, Robin Becker <[EMAIL PROTECTED]> wrote:
> can the middleware determine the template used by V0 so that it can be used
> automatically to generate V2?
Yes. Have a look at django.test.utils.instrumented_test_render and
.setup_test_environment.
You'll see a way to monkeypatch Template.r
A colleague is writing a response middleware which hijacks the normal view
under
certain circumstances. Diagramatically
V0 -->M(0)--> V1 is the normal case view V0 goes directly to V1 ie the
middleware M does nothing.
when the hijack is to take place
V0 -->M(1)-->V2-->M(0)-->V1
Now my q
2 matches
Mail list logo