Ben Bangert wrote:
> def action(self):
>      req = request.current_obj()
>      def long_func():
>          env = req.environ
>          yield "some content"
>          # do something that takes awhile
>          yield "more content"
>      resp = Response()
>      resp.content = long_func()
>      return resp

I know that Response is actually paste.wsgiwrappers.WSGIResponse, but
it'd be great if it'd accept an iterator as content parameter so last
three lines could be replaced by

return Response(long_func())


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to