diff roundup/hyperdb.py @ 2906:a8808157f892

fix some bugs introduced in refactoring of blobfiles filename() unless in debug mode, keep a single persistent connection through a single web or mailgw request fix enabling of DEBUG logging in db_test_case (no cmdline switch yet)
author Richard Jones <richard@users.sourceforge.net>
date Fri, 12 Nov 2004 04:07:05 +0000
parents 37e2b70105f7
children 2fc6c508b537
line wrap: on
line diff
--- a/roundup/hyperdb.py	Thu Nov 11 21:36:07 2004 +0000
+++ b/roundup/hyperdb.py	Fri Nov 12 04:07:05 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: hyperdb.py,v 1.104 2004-10-08 05:44:33 richard Exp $
+# $Id: hyperdb.py,v 1.105 2004-11-12 04:07:03 richard Exp $
 
 """Hyperdatabase implementation, especially field types.
 """
@@ -753,7 +753,7 @@
     def import_files(self, dirname, nodeid):
         ''' Import the "content" property as a file
         '''
-        dest = self.db.filename(self.classname, nodeid)
+        dest = self.db.filename(self.classname, nodeid, create=True)
         x, filename = os.path.split(dest)
         x, subdir = os.path.split(x)
         source = os.path.join(dirname, self.classname+'-files', subdir,

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