"Dan Weeks" <[EMAIL PROTECTED]> writes:

> How in his example with the hub.commit() occuring after the statement
> that throws an execption can the hub.commit() make a difference in the
> code?   The very fact that the call to MyClass throws and exception
> means that hub.commit() should never be reached unless there is
> something I'm missing or some magic in SQLObject.

Remember that all code runs inside an implicit transaction with TG.  The first
exception is being caught by his generic "except" clause.  Then the program
continues and there comes another hub.commit() from the implicit transaction
in TurboGears. 

-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to