Mercurial > p > roundup > code
diff roundup/backends/blobfiles.py @ 891:974a4b94c5e3
Implemented the destroy() method needed by the session database...
(and possibly others). At the same time, I removed the leading
underscores from the hyperdb methods that Really Didn't Need Them.
The journal also raises IndexError now for all situations where there is a
request for the journal of a node that doesn't have one. It used to return
[] in _some_ situations, but not all. This _may_ break code, but the tests
pass...
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 19 Jul 2002 03:36:34 +0000 |
| parents | 76c6db876c14 |
| children | 32e41ddf2edb |
line wrap: on
line diff
--- a/roundup/backends/blobfiles.py Thu Jul 18 23:07:08 2002 +0000 +++ b/roundup/backends/blobfiles.py Fri Jul 19 03:36:34 2002 +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.7 2002-07-14 06:14:40 richard Exp $ +#$Id: blobfiles.py,v 1.8 2002-07-19 03:36:34 richard Exp $ ''' This module exports file storage for roundup backends. Files are stored into a directory hierarchy. @@ -81,7 +81,7 @@ open(name + '.tmp', 'wb').write(content) # save off the commit action - self.transactions.append((self._doStoreFile, (classname, nodeid, + self.transactions.append((self.doStoreFile, (classname, nodeid, property))) def getfile(self, classname, nodeid, property): @@ -105,7 +105,7 @@ files_dir = os.path.join(self.dir, 'files') return files_in_dir(files_dir) - def _doStoreFile(self, classname, nodeid, property, **databases): + def doStoreFile(self, classname, nodeid, property, **databases): '''Store the file as part of a transaction commit. ''' # determine the name of the file to write to @@ -117,7 +117,7 @@ # return the classname, nodeid so we reindex this content return (classname, nodeid) - def _rollbackStoreFile(self, classname, nodeid, property, **databases): + def rollbackStoreFile(self, classname, nodeid, property, **databases): '''Remove the temp file as a part of a rollback ''' # determine the name of the file to delete @@ -126,6 +126,9 @@ os.remove(name+".tmp") # $Log: not supported by cvs2svn $ +# Revision 1.7 2002/07/14 06:14:40 richard +# Some more TODOs +# # Revision 1.6 2002/07/09 03:02:52 richard # More indexer work: # - all String properties may now be indexed too. Currently there's a bit of
