Mercurial > p > roundup > code
diff roundup/backends/blobfiles.py @ 3899:e02cf6f9ae74
fix class docstring per alex
| author | Justus Pendleton <jpend@users.sourceforge.net> |
|---|---|
| date | Wed, 12 Sep 2007 16:15:40 +0000 |
| parents | e2c2d91932ad |
| children | 666b70676ec6 |
line wrap: on
line diff
--- a/roundup/backends/blobfiles.py Wed Sep 12 01:15:07 2007 +0000 +++ b/roundup/backends/blobfiles.py Wed Sep 12 16:15:40 2007 +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.20 2007-09-11 21:33:30 jpend Exp $ +#$Id: blobfiles.py,v 1.21 2007-09-12 16:15:40 jpend Exp $ '''This module exports file storage for roundup backends. Files are stored into a directory hierarchy. ''' @@ -36,10 +36,11 @@ return num_files class FileStorage: + """Store files in some directory structure""" + def __init__(self, umask): self.umask = umask - """Store files in some directory structure""" def subdirFilename(self, classname, nodeid, property=None): """Determine what the filename and subdir for nodeid + classname is.""" if property: @@ -104,9 +105,9 @@ # save off the rename action self.transactions.append((self.doStoreFile, (classname, nodeid, property))) - # always set umask before writing to make sure we have the proper one - # in multi-tracker (i.e. multi-umask) or modpython scenarios - # the umask may have changed since last we set it. + # always set umask before writing to make sure we have the proper one + # in multi-tracker (i.e. multi-umask) or modpython scenarios + # the umask may have changed since last we set it. os.umask(self.umask) open(name, 'wb').write(content)
