Em Saturday 03 May 2008 15:43:41 [EMAIL PROTECTED] escreveu: > I'm curious why controllers don't need an explicit manual commit() > command to alter the database like non-controllers do. > Perhaps TurboGears automatically does a silent > commit() after every controller call? > > (This is *not* the case for scripts outside of controllers. They > must explicitly commit database stuff. I was wondering why.)
Take a look at the code and at the @expose() decorator. @expose()d methods are wrapped within a transacion. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

