Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
| File trans.patch,
450 bytes
(added by alberto, 5 years ago) |
|
|
-
|
|
|
|
| 278 | 278 | def sa_rwt(func, *args, **kw): |
| 279 | 279 | log.debug("New SA transaction") |
| 280 | 280 | transaction = session.create_transaction() |
| | 281 | cherrypy.request.tg_sa_transaction = transaction |
| 281 | 282 | try: |
| 282 | 283 | retval = func(*args, **kw) |
| 283 | 284 | transaction.commit() |
Download in other formats: