1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- #$Id: blobfiles.py,v 1.15 2004-11-12 04:07:05 richard Exp $
18+ #$Id: blobfiles.py,v 1.16 2004-11-25 22:51:06 richard Exp $
1919'''This module exports file storage for roundup backends.
2020Files are stored into a directory hierarchy.
2121'''
@@ -37,7 +37,7 @@ def files_in_dir(dir):
3737
3838class FileStorage :
3939 """Store files in some directory structure"""
40- def filename (self , classname , nodeid , property = None , create = False ):
40+ def filename (self , classname , nodeid , property = None , create = 0 ):
4141 '''Determine what the filename for the given node and optionally
4242 property is.
4343
@@ -82,7 +82,7 @@ def storefile(self, classname, nodeid, property, content):
8282 is being saved.
8383 '''
8484 # determine the name of the file to write to
85- name = self .filename (classname , nodeid , property , create = True )
85+ name = self .filename (classname , nodeid , property , create = 1 )
8686
8787 # make sure the file storage dir exists
8888 if not os .path .exists (os .path .dirname (name )):
0 commit comments