how do i do this - stream file

Diez B. Roggisch deetsNOSPAM at web.de
Tue Aug 3 15:13:37 CEST 2004


> How do i create and stream a file?
> On a webpage i have a link to a file. Next to it i would like link, which,
> when pressed, runs a script that calculates the signature of the file,
> pickles the signature to a file and then gives a dialog box asking the
> user whether they would like to save the file or open it.
> 
> I have the script to do the signing and pickle the signature into a file,
> but how do i allow the user to download it?

You'll need a webserver - there exist simple http-servers in the standard
modules, you can use twisted or one of the plethorea of
web-serving-solutions  that exist for python, like (on particular order nor
a complete list) quixote, zope, mod_python and so on....

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list