On 2/27/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > I'm starting to build an application where I need to output large files > to the user in chunks to control download speed and to know if the > download has succeeded. Django's HttpResponse object treats response as > a single string in memory and doesn't allow such things. I plan to > modify it to be a readable file-like object (currently it's only > writable and anyway constructs the whole string). > > I know that file-like object can be returned directly from WSGI handler > but know nothing about mod-python in this regard. I'll be grateful for > any pointers.
It'd be cool to improve Django's HttpResponse objects to be able to yield data as well as construct them all in memory. Give it a shot, and let us know how it goes. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---