sandbox/views.py
def head(self, _, env, path):
        """Returns a response with status 200 if <path> point to a file the environment <env>,
        404 otherwise."""
        file = utils.extract(env, path)
        response = HttpResponse()
        response["Content-Length"] = file.seek(0, SEEK_END)
        response['Content-Type'] = "application/octet-stream"
        response['Content-Disposition'] = ('attachment; filename=' + os.path.basename(path))
        return response
Returns a response with status 200 if <path> point to a file the environment <env>,
        404 otherwise.
Returns a response with status 200 if  point to a file the environment ,
404 otherwise.
Returns a response with status 200 if point to a file the environment 404 otherwise .
def head(self, _, env, path):
        file = utils.extract(env, path)
        response = HttpResponse()
        response["Content-Length"] = file.seek(0, SEEK_END)
        response['Content-Type'] = "application/octet-stream"
        response['Content-Disposition'] = ('attachment; filename=' + os.path.basename(path))
        return response
def head ( self , _ , env , path ) : file = utils . extract ( env , path ) response = HttpResponse ( ) response [ "Content-Length" ] = file . seek ( 0 , SEEK_END ) response [ 'Content-Type' ] = "application/octet-stream" response [ 'Content-Disposition' ] = ( 'attachment; filename=' + os . path . basename ( path ) ) return response
Returns a response with status 200 if <path> point to a file the environment <env>,
404 otherwise.
Returns a response with status 200 if <path > point to a file the environment <env > 404 otherwise .
"""Returns a response with status 200 if <path> point to a file the environment <env>,
        404 otherwise."""
self
_
env
path