[PyQt] QtWebKit how to response server mimetype

Gerald Lee leejd80 at gmail.com
Thu Nov 13 04:37:20 GMT 2008


server code:
------------------------------------
def export(request, data):
    if request.POST.has_key('ExportBOM'):
        response = HttpResponse(mimetype='application/text')
        response['Content-Disposition'] = 'attachment; filename=CADXY.txt'
        response.write('\n'.join(data))
        return response

Client browser is QtWebKit in my application.This application is coded
by PyQT v4.4.3 for Python 2.5.
Client response this server return data failed.

How to resolve it? My QtWebKit application put dialog(save file or
open with special application) as firefox or IE?


More information about the PyQt mailing list