diff roundup/roundupdb.py @ 5319:62de601bdf6f

Fix commits although a Reject exception is raised Fix the problem that changes are committed to the database (due to commits to otk handling) even when a Reject exception occurs. The fix implements separate database connections for otk/session handling and normal database operation.
author Ralf Schlatterbeck <rsc@runtux.com>
date Fri, 20 Apr 2018 18:46:28 +0200
parents a4fe76fba54a
children 66a17c80e035
line wrap: on
line diff
--- a/roundup/roundupdb.py	Thu Apr 19 20:01:43 2018 +0200
+++ b/roundup/roundupdb.py	Fri Apr 20 18:46:28 2018 +0200
@@ -128,6 +128,7 @@
         userid = cl.create(**props)
         # clear the props from the otk database
         self.getOTKManager().destroy(otk)
+        # commit cl.create (and otk changes)
         self.commit()
 
         return userid

Roundup Issue Tracker: http://roundup-tracker.org/