diff roundup/backends/blobfiles.py @ 2966:2ddba486546a

various fixes
author Richard Jones <richard@users.sourceforge.net>
date Thu, 25 Nov 2004 23:53:31 +0000
parents 4607f58a007b
children 293a17149765
line wrap: on
line diff
--- a/roundup/backends/blobfiles.py	Thu Nov 25 22:59:17 2004 +0000
+++ b/roundup/backends/blobfiles.py	Thu Nov 25 23:53:31 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-#$Id: blobfiles.py,v 1.16 2004-11-25 22:51:06 richard Exp $
+#$Id: blobfiles.py,v 1.17 2004-11-25 23:53:31 richard Exp $
 '''This module exports file storage for roundup backends.
 Files are stored into a directory hierarchy.
 '''
@@ -146,7 +146,8 @@
         '''
         # determine the name of the file to delete
         name = self.filename(classname, nodeid, property)
-        if os.path.exists(name+".tmp"):
-            os.remove(name+".tmp")
+        if not name.endswith('.tmp'):
+            name += '.tmp'
+        os.remove(name)
 
 # vim: set filetype=python ts=4 sw=4 et si

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