Hi Gael,

Indeed, app_iter does work flawlessly out-of-box with GridOut object.
It was some other elementary mistake I made that is triggering the
exception, my bad.

Jerry

On Nov 4, 12:04 am, Gael Pasgrimaud <[email protected]> wrote:
> On Thu, Nov 3, 2011 at 4:54 PM, jerry <[email protected]> wrote:
> > Hi,
>
> > How does pyramid.response.Response use the (app_iter=) object passed
> > in?
>
> > I'm interested in the details because it does not work with
> > app_iter=MongoDB's gridfs.grid_file.GridOut object (which supports the
> > usual read/seek/tell() operations), but I found myself drowning in the
> > zope style implementation in Pyramid.
>
> GridOut also implement 
> __iter__http://api.mongodb.org/python/current/api/gridfs/grid_file.html#gridf...
>
> So you can use it as this
>
>
>
>
>
>
>
>
>
> > Thanks in advance.
>
> > Jerry
>
> > --
> > 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 
> > athttp://groups.google.com/group/pylons-discuss?hl=en.

-- 
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?hl=en.

Reply via email to