> Hi Damjan,
> Thanks for your explanation,
>
> In my case lambda needs because I am trying to follow Werkzeug
> tutorial where session, locals etc. are separated between different
> files such as utils.py, application.py etc
> In case of separation without lamda your latest solution doesn't work.

You don't need lambda, sinice sessionmaker will itself create and
return a function that will be then called by the scoped_session when
needed.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" 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/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to