I thought I would be able to use an HttpResponse object as the file
argument for ZipFile, like this:

response = HttpResponse(mimetype='application/zip')
response['Content-Disposition'] = 'attachment; filename=zipfile.zip'
file = zipfile.ZipFile(response, "w")

but as soon as I try to write to it I get the error "'HttpResponse'
object has no attribute 'seek'".

Am I missing something here?

Thanks,

Kip.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to