

def _downloadMultifileItem(self, item, user):
    cherrypy.response.headers['Content-Type'] = 'application/zip'
    cherrypy.response.headers['Content-Disposition'] = ('attachment; filename="%s%s"' % (self['name'], '.zip'))

    def stream():
        zip = ziputil.ZipGenerator(item['name'])
        for (path, file) in self.model('item').fileList(item, subpath=False):
            for data in zip.addFile(file, path):
                (yield data)
        (yield zip.footer())
    return stream

dataset/ETHPy150Open girder/girder/girder/api/v1/item.py Item._downloadMultifileItem/VarMisuse@38/64 `item`->`self`