Robin Haswell wrote:
> Hey there
> 
> Does TG have any provisions for exception reporting (eg, E-mailing the 
> developer), and if not, do 
> you think this would be difficult to implement?
> 
> I'm coming up to BETA deployment soon and I'd like to have some notifications 
> of errors :-)

Built-in no, however it is pretty trivial to do so. You can either:

1) override method _cp_on_error in your Root controller

2) define a catch-all exception handler:

@dispatch_error.when("tg_exception is not None")
def notify(self, tg_source, tg_exception):
   return "Holly exception Batman!"

Cheers,
Simon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to