I'm a little confused. We already accepted your PR
https://github.com/Pylons/pyramid/pull/1335 to clarify that the order is
consistent and acceptable as tweens -> callbacks -> newresponse. Were we
not supposed to accept this PR if you were intending to discuss it in
pylons-discuss?


On Mon, May 5, 2014 at 3:30 AM, wilk <[email protected]> wrote:

> Hi,
>
> I try to understand the order of each events, and maybe draw a graph
> with them. (i began with blockdiag, but it's not easy, i'll show you
> later...)
>
> I've a question about response events and callbacks.
>
> In the documentation :
>
> http://docs.pylonsproject.org/projects/pyramid/en/master/api/request.html?highlight=add_response#pyramid.request.Request.add_response_callback
> All response callbacks are called after the pyramid.events.NewResponse
> event is sent.
>
> On this page :
>
> http://docs.pylonsproject.org/projects/pyramid/en/master/narr/hooks.html#using-response-callbacks
> All response callbacks are called before the NewResponse event is sent
>
> I make a test, it seems that NewResponse is fired after callbacks. The
> first page is incorrect ?
>
> Also I was surprise that response_callback and NewResponse event are
> called after the tween. I asked on IRC, it was not clear...
>
> Here the code to test :
> https://gist.github.com/flibustenet/9cf280591cdc6f684662
>
> tween_in
> View hello
> tween_out
> response_callback
> NewResponse
> finished_callback
>
> --
> William
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to