support cancelling of multipart upload

This commit is contained in:
Konstantinos Koukopoulos 2013-09-30 18:36:25 +03:00
commit b1d59c7e17
2 changed files with 8 additions and 0 deletions

View file

@ -164,6 +164,10 @@ class S3Backend(BaseBackend):
return self.set_key(bucket_name, multipart.key_name, value)
def cancel_multipart(self, bucket_name, multipart_id):
bucket = self.buckets[bucket_name]
del bucket.multiparts[multipart_id]
def list_multipart(self, bucket_name, multipart_id):
bucket = self.buckets[bucket_name]
return bucket.multiparts[multipart_id].list_parts()