[Checkins] SVN: z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/ fixed regression error introduced by previous change: commit the zope transaction when ready in tpc_finish

Maurits van Rees m.van.rees at zestsoftware.nl
Tue Feb 19 06:03:06 EST 2008


Log message for revision 84051:
  fixed regression error introduced by previous change: commit the zope transaction when ready in tpc_finish

Changed:
  U   z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/CHANGES.txt
  U   z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/base.py

-=-
Modified: z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/CHANGES.txt
===================================================================
--- z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/CHANGES.txt	2008-02-19 10:55:15 UTC (rev 84050)
+++ z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/CHANGES.txt	2008-02-19 11:03:06 UTC (rev 84051)
@@ -1,6 +1,9 @@
 Unreleased
 ----------
 
+  - fixed regression error introduced by previous change: commit the
+    zope transaction when ready in tpc_finish [maurits]
+
   - fixed issue where session's transaction.nested was being called as
     a callabe (it should be straight attribute access) [Rocky]
 

Modified: z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/base.py
===================================================================
--- z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/base.py	2008-02-19 10:55:15 UTC (rev 84050)
+++ z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/base.py	2008-02-19 11:03:06 UTC (rev 84051)
@@ -204,6 +204,7 @@
         if self.transaction is not None:
             while self.session.transaction.nested:
                 self.session.commit()
+            self.transaction.commit()
 
         self.session.clear()
         self._cleanup()



More information about the Checkins mailing list