Implemented the size method in GridFS storage, updated docs

This commit is contained in:
Roberto Rosario
2011-03-04 02:49:23 -04:00
parent 9674d4d3ee
commit 30c6292630
4 changed files with 22 additions and 9 deletions

View File

@@ -71,8 +71,7 @@ class GridFSStorage(Storage):
def size(self, name):
#TODO: Implement
return 0
return self.fs.get_last_version(name).length
def move(self, old_file_name, name, chunk_size=1024*64):