On 10/10/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> The final result would be that the exception clauses in Django would
> be a method, reducing the exception clause in the base handler to
> calling that method.
[...]
> I think this keeps the exception handling semantics the same, but
> provides a hook for further handling the exception.  Coincidentally,
> it makes request exception handling look a lot like a view...

Yeah, this sounds like a great idea. I've had similar needs in the
past the might have been solved by having this available.

Another neat trick this would allow -- something I've been wanting for
quite some time -- would be conditional display of exception pages
even when DEBUG == False. Think showing the exception page to
superusers...

I think you're completely right about making the exception handler
into a plain old view; the signature (request, exception) seems right,
but I haven't thought it through completely yet.

Jacob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
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