Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/e/n/enigma2-plugins-HEAD/webinterface/src/WebChilds/FileStreamer.py   enigma2-plugins(Download)
				request.setHeader("content-disposition", "attachment;filename=\"%s\"" % (basename))
				file = static.File(path, defaultType = "application/octet-stream")
				return file.render(request)
 
			else:

src/r/a/ranvier-1.1dev/lib/python/ranvier/twistwebproxy.py   ranvier(Download)
                request.setResponseCode(http.OK)
                f = static.File(fn)
                r = f.render(request)
                badroot_redirect = 0
 

src/e/2/e2openplugin-OpenWebif-HEAD/plugin/controllers/ipkg.py   e2openplugin-OpenWebif(Download)
		request.setHeader("Content-Disposition:", "attachment;filename=\"%s\"" % (tmpFilename.split('/')[-1]))
		rfile = static.File(tmpFilename, defaultType = "application/octet-stream")
		return rfile.render(request)
 
	def CallOPKG(self, request, action, parms=[]):

src/e/2/e2openplugin-OpenWebif-HEAD/plugin/controllers/file.py   e2openplugin-OpenWebif(Download)
				request.setHeader("Content-Disposition:", "attachment;filename=\"%s\"" % (filename.split('/')[-1]))
				rfile = static.File(filename, defaultType = "application/octet-stream")
				return rfile.render(request)
			else: 
				return "wrong action parameter"