On Mon, Apr 14, 2008 at 3:30 AM, James Bennett <[EMAIL PROTECTED]> wrote:
>  the useful tricks that a real middleware can do -- for example, you
>  can't tweak request.urlconf to change URL resolution, because by the
>  time a decorated view comes into play the URL resolution phase is
>  over.

Well. I should say you can't do them as easily. You could, I suppose,
write a decorator which imports the URL resolution machinery and does
a fresh match based on new URL patterns, then calls the view that
comes out of that, but it'd be awfully tedious compared to the way it
works in middleware.


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to