diff roundup-admin @ 430:350685601f37

Database transactions. . We now have basic transaction support! Information is only written to the database when the commit() method is called. Only the anydbm backend is modified in this way - neither of the bsddb backends have been. The mail, admin and cgi interfaces all use commit (except the admin tool doesn't have a commit command, so interactive users can't commit...) . Fixed login/registration forwarding the user to the right page (or not, on a failure)
author Richard Jones <richard@users.sourceforge.net>
date Sat, 01 Dec 2001 07:17:50 +0000
parents 3e31e53a6ff6
children a28a80b714f9
line wrap: on
line diff
--- a/roundup-admin	Fri Nov 30 20:47:58 2001 +0000
+++ b/roundup-admin	Sat Dec 01 07:17:50 2001 +0000
@@ -16,7 +16,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: roundup-admin,v 1.48 2001-11-27 22:32:03 richard Exp $
+# $Id: roundup-admin,v 1.49 2001-12-01 07:17:50 richard Exp $
 
 import sys
 if int(sys.version[0]) < 2:
@@ -882,8 +882,8 @@
             self.interactive()
         else:
             ret = self.run_command(args)
-        if self.db:
-            self.db.close()
+            if self.db: self.db.commit()
+        if self.db: self.db.close()
         return ret
 
 
@@ -893,6 +893,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.48  2001/11/27 22:32:03  richard
+# typo
+#
 # Revision 1.47  2001/11/26 22:55:56  richard
 # Feature:
 #  . Added INSTANCE_NAME to configuration - used in web and email to identify

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