durusmail: quixote-users: Medusa producers
Medusa producers
2003-08-21
Re: Medusa producers
2003-08-21
2003-08-21
2003-08-21
2003-08-21
2003-08-22
2003-08-22
2003-08-22
2003-08-22
2003-08-22
2003-08-22
response streams [Was: Medusa producers]
response streams
2003-08-27
Re: response streams [Was: Medusa producers]
2003-08-28
Medusa producers
Oleg Broytmann
2003-08-21
Hello.

   QuixoteHandler (server/http_medusa.py) force any output to be a string
(qreq.response.set_body(str(output))). This means that a published object
cannot return a producer.

   Why? Producers are very useful for returning huge objects, or objects
that are slowly calculated on the fly.

   Though I have not tried it yet, I think it woyld be relatively easy to
modify server/http_medusa.py to allow output to be a producer (an object
with .more() method). I am going to try it. Will anyone be interested in my
patches?

Oleg.
--
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

reply