Decorator that wraps DAO methods to handle transactions automatically. It may only work with subclasses of L{BaseDAO}.
(fn, self, *argv, **argd)
| 318 | |
| 319 | @decorator |
| 320 | def Transactional(fn, self, *argv, **argd): |
| 321 | """ |
| 322 | Decorator that wraps DAO methods to handle transactions automatically. |
| 323 | |
| 324 | It may only work with subclasses of L{BaseDAO}. |
| 325 | """ |
| 326 | return self._transactional(fn, *argv, **argd) |
| 327 | |
| 328 | |
| 329 | # ============================================================================== |
nothing calls this directly
no test coverage detected