[open-ils-commits] r36 - servres/trunk/conifer

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Nov 19 23:49:40 EST 2008


Author: gfawcett
Date: 2008-11-19 23:49:38 -0500 (Wed, 19 Nov 2008)
New Revision: 36

Modified:
   servres/trunk/conifer/settings.py
Log:
added commit-on-success transaction manager

This is a smart default: each HTTP request is handled within a
discrete database transaction. If an unhandled exception occurs during
the request, the transaction is rolled back.

Maybe we'll want to rethink this later, and use a more fine-grained
approach.


Modified: servres/trunk/conifer/settings.py
===================================================================
--- servres/trunk/conifer/settings.py	2008-11-20 04:26:51 UTC (rev 35)
+++ servres/trunk/conifer/settings.py	2008-11-20 04:49:38 UTC (rev 36)
@@ -70,6 +70,8 @@
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'conifer.middleware.genshi_locals.ThreadLocals',
+    # TransactionMiddleware should be last...
+    'django.middleware.transaction.TransactionMiddleware',
 )
 
 ROOT_URLCONF = 'conifer.urls'



More information about the open-ils-commits mailing list