Hi,
Going through the tutorial, got stack with creating session using
sessionmaker() instead of create_session() inside  of utils.py file.

e.g. This works

session = scoped_session(lambda: create_session
(bind=application.database_engine, autoflush=True, autocommit=False),
local_manager.get_ident)

How to do this using sessionmaker() ???

session = scoped_session(lambda: sessionmaker
(bind=application.database_engine), local_manager.get_ident)

doesn't work: RuntimeError: no object bound to application

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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