Mercurial > p > roundup > code
comparison roundup/backends/blobfiles.py @ 4347:0e33bf5571dc
make some more memorydb tests pass
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 05 Feb 2010 05:10:52 +0000 |
| parents | 35d2976cb4ba |
| children | 2120f77554d5 |
comparison
equal
deleted
inserted
replaced
| 4346:4dc575b33712 | 4347:0e33bf5571dc |
|---|---|
| 302 return filename | 302 return filename |
| 303 | 303 |
| 304 # file just ain't there | 304 # file just ain't there |
| 305 raise IOError('content file for %s not found'%filename) | 305 raise IOError('content file for %s not found'%filename) |
| 306 | 306 |
| 307 def filesize(self, classname, nodeid, property=None, create=0): | |
| 308 filename = self.filename(classname, nodeid, property, create) | |
| 309 return os.path.getsize(filename) | |
| 310 | |
| 307 def storefile(self, classname, nodeid, property, content): | 311 def storefile(self, classname, nodeid, property, content): |
| 308 """Store the content of the file in the database. The property may be | 312 """Store the content of the file in the database. The property may be |
| 309 None, in which case the filename does not indicate which property | 313 None, in which case the filename does not indicate which property |
| 310 is being saved. | 314 is being saved. |
| 311 """ | 315 """ |
