(self)
return filename
Gets a filename of a file containing the content for this.
Gets a filename of a file containing the content for this.
Gets a filename of a file containing the content for this .
def get_filename(self):
        """
        Gets a filename of a file containing the content for this.
        """
        # some libraries like to work with files rather than content
        # so use this to force it be a file. FileDownload will override
        # this to avoid the duplicate storage.
        fd, filename = mkstemp(suffix=self.suffix)
        with os.fdopen(fd, "wb") as tmp:
            tmp.write(self.get_content())
        return filename
def get_filename ( self ) : # some libraries like to work with files rather than content # so use this to force it be a file. FileDownload will override # this to avoid the duplicate storage. fd , filename = mkstemp ( suffix = self . suffix ) with os . fdopen ( fd , "wb" ) as tmp : tmp . write ( self . get_content ( ) ) return filename