[Answer]-Calling the S3BotoStorage Save() method from a subclass

1👍

Storage._save should return the name of the file being saved. Your _save does not. You should return the value from the super call.

class CustomStorage(S3BotoStorage):
    def __init__(self, *args, **kwargs):
        super(CustomStorage, self).__init__(*args, **kwargs)

    def _save(self,*args, **kwargs):
        #Will do stuff there
        print >> sys.stderr, "%s" % (self.bucket)
        return super(CustomStorage, self)._save(*args, **kwargs)

Leave a comment