Re: [web2py] Re: Stream cStringIO

2014-12-29 Thread Niphlod
nope. you could want to stream something at the middle of the stringio constructed stream. Dealing with seek() is basic python 101. On Monday, December 29, 2014 3:03:45 PM UTC+1, flagist0 wrote: > > Thank you! Yes, it worked, but maybe it should be added into the > response.stream code > itself

Re: [web2py] Re: Stream cStringIO

2014-12-29 Thread Alexandr Presniakov
Thank you! Yes, it worked, but maybe it should be added into the response.stream code itself? 2014-12-27 2:27 GMT+04:00 Niphlod : > the docstrings api on web2py.com/examples/epydoc are reeeally old and > buggy. The new api documentation is on readthedocs >

[web2py] Re: Stream cStringIO

2014-12-26 Thread Niphlod
the docstrings api on web2py.com/examples/epydoc are reeeally old and buggy. The new api documentation is on readthedocs Now... if you want to pass a StringIO to response.stream, you have to "rewind" it to 0 before passing it s = cStringIO.String