> from turbogears.database import run_with_transaction, _use_sa
>
> @run_with_transaction.when("getattr(func, '_no_trans', False) and
> _use_sa()")
> def _no_trans_for_this_method(func, *args, **kw):
> return func(*args, **kw)
>
Wonderful! I hadn't seen any reference to decorators for the
run_with_transaction method in the documentation. Perhaps I missed it
if it is there.
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---