>> 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. > > He does. application.database_engine is not available when the > application is not yet bound to the active context. It's only bound > during a request and that code there is executed at import time.
ok, I didn't know what code he was writing, but checking the tutorial I see how it's organized. I ussually don't like to use Thread Locals .. but that's another question. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
