#NEWLINE# def downloadFile( self , file , offset = 0 , headers = True , endByte = None , contentDisposition = None ) : #NEWLINE# #INDENT# '\n        This method is in charge of returning a value to the RESTful endpoint\n        that can be used to download the file. This can return a generator\n        function that streams the file directly, or can modify the cherrypy\n        request headers and perform a redirect and return None, for example.\n\n        :param file: The file document being downloaded.\n        :type file: dict\n        :param offset: Offset in bytes to start the download at.\n        :type offset: int\n        :param headers: Flag for whether headers should be sent on the response.\n        :type headers: bool\n        :param endByte: Final byte to download. If ``None``, downloads to the\n            end of the file.\n        :type endByte: int or None\n        :param contentDisposition: Value for Content-Disposition response\n            header disposition-type value.\n        :type contentDisposition: str or None\n        ' #NEWLINE# raise NotImplementedError ( ( 'Must override downloadFile in %s.' % headers . __class__ . __name__ ) )