Mercurial > p > roundup > code
diff roundup/backends/rdbms_common.py @ 3906:666b70676ec6
destroy blobfiles if they exist
Fixes [SF#1654132]
| author | Justus Pendleton <jpend@users.sourceforge.net> |
|---|---|
| date | Sun, 16 Sep 2007 06:51:48 +0000 |
| parents | e2c2d91932ad |
| children | 21d3d7eeea8c |
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py Sun Sep 16 05:39:11 2007 +0000 +++ b/roundup/backends/rdbms_common.py Sun Sep 16 06:51:48 2007 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: rdbms_common.py,v 1.189 2007-09-11 21:33:30 jpend Exp $ +#$Id: rdbms_common.py,v 1.190 2007-09-16 06:51:48 jpend Exp $ """ Relational database (SQL) backend common code. Basics: @@ -1025,6 +1025,9 @@ sql = 'delete from %s__journal where nodeid=%s'%(classname, self.arg) self.sql(sql, (nodeid,)) + # cleanup any blob filestorage when we commit + self.transactions.append((FileStorage.destroy, (self, classname, nodeid))) + def hasnode(self, classname, nodeid): """ Determine if the database has a given node. """
