I've searched around and I see I'm not the first to ask this... try: DBSession.save(order) DBSession.flush() except IntegrityError: THIS NEVER EXECUTES....
If I call the method that this is in from my external Flex app with invalid data, I get an exception thrown and looking at the debug view, it's obvious that something else is catching the IntegrityError after the controller method's done executing. I really don't see the point in writing code to check database constraints...I'd rather let the db throw them and handle them in exceptions. What am I missing? I'm on TG2b7 btw. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

