changeset 553:10ee3427011f

Rollback was breaking... ...because a message hadn't actually been written to the file. Needs more investigation.
author Richard Jones <richard@users.sourceforge.net>
date Fri, 18 Jan 2002 04:32:04 +0000
parents 0f8734a5a004
children 7e7b4183a8bd
files roundup/backends/back_anydbm.py
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py	Thu Jan 17 23:04:53 2002 +0000
+++ b/roundup/backends/back_anydbm.py	Fri Jan 18 04:32:04 2002 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-#$Id: back_anydbm.py,v 1.22 2002-01-14 02:20:15 richard Exp $
+#$Id: back_anydbm.py,v 1.23 2002-01-18 04:32:04 richard Exp $
 '''
 This module defines a backend that saves the hyperdatabase in a database
 chosen by anydbm. It is guaranteed to always be available in python
@@ -398,7 +398,8 @@
         for method, args in self.transactions:
             # delete temporary files
             if method == self._doStoreFile:
-                os.remove(args[0]+".tmp")
+                if os.path.exists(args[0]+".tmp"):
+                    os.remove(args[0]+".tmp")
         self.cache = {}
         self.dirtynodes = {}
         self.newnodes = {}
@@ -406,6 +407,15 @@
 
 #
 #$Log: not supported by cvs2svn $
+#Revision 1.22  2002/01/14 02:20:15  richard
+# . changed all config accesses so they access either the instance or the
+#   config attriubute on the db. This means that all config is obtained from
+#   instance_config instead of the mish-mash of classes. This will make
+#   switching to a ConfigParser setup easier too, I hope.
+#
+#At a minimum, this makes migration a _little_ easier (a lot easier in the
+#0.5.0 switch, I hope!)
+#
 #Revision 1.21  2002/01/02 02:31:38  richard
 #Sorry for the huge checkin message - I was only intending to implement #496356
 #but I found a number of places where things had been broken by transactions:

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