Damjan,
You are right in case of SA work flow.

I am talking about Werkzeug integration with SA:

e.g. 
http://werkzeug.pocoo.org/documentation/0.5.1/tutorial.html#part-2-the-utilities

For more detail have a look this fantastic tutorial:

http://werkzeug.pocoo.org/documentation/0.5.1/tutorial.html

Download this code from here: 
http://dev.pocoo.org/projects/werkzeug/browser/examples/shorty
and try recreate session from utils.py file.

Thanks again.
VP


On Sep 21, 5:54 pm, Damjan <[email protected]> wrote:
> > 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