Sanjay schrieb: > If I code something like > > u = User(user_name='some repeated_name') > > which raises an exception, I am unable to handle the exception with > @exception_handler. I reconfirmed this creating a smallest possible TG > + SA project. I am using TG 1.0.4.4 > > Is it a bug? I am stuck somewhere in a project.
The problem here is that TG 1.0 does not use auto flush, so you need to session.flush() insider your controller to raise the exception. -- Christoph --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

