El 11/12/13 20:44, Jonathan Vanasco escribió:

If you only use the "manual" session within a single view/function (or pass it around to other functions), you would not need a `scoped_session`.

I'm using it in 3 views, in one of them, passing to other functions as a parameter. In this case, need I the scoped_session?



When you create the session, you can register a cleanup with `add_finished_callback` to remove the session and release locks.

I create the session inside the request, you say, at the same time, I can register the add_finished_callback to avoid the try/finally in the view body, correct?

Thank you.

--
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/groups/opt_out.

Reply via email to