Hi Diez,

Thanks for the reply. I'm still not sure about how this should work.
The result of scoped_session is a class, not an instantiated session.
The documentation says I should take the result of that and create a
session object, e.g.

Session = scoped_session(sessionmaker(...))

session = Session()

If I do as you suggest, e.g. Session.query(...), I get this error:

TypeError: unbound method query() must be called with Session instance
as first argument (got DeclarativeMeta instance instead)

which doesn't surprise me. But when I create a brand new project via
paster, nowhere is Session() being called?

What am I missing??

Thanks for the help,
Demitri

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to