[mod_python] Sendfile & request answer

Dominique.Holzwarth at ch.delarue.com Dominique.Holzwarth at ch.delarue.com
Thu Apr 24 06:04:38 EDT 2008

Hi everyone!

I'm using the publisher handler for a web application that consist of a html page with a form. On a button click I'm sending a file to the client (so the client can open/save that file). But when I do the req.sendfile() I can't send a 'normal' request answer (a html page) to the client anymore using 'return "some html string"' or 'req.write("html string")'.

Is there any way to send a file to the user AND refresh the displayed html page?

Thanks for any help!

More information about the Mod_python mailing list