[sqlalchemy] Re: cherrypy SA 0.7 scoped_session

2011-12-08 Thread John Hufnagle
Thanks! That was it. My weak Python understanding was my downfall! On Dec 8, 11:06 pm, Diana Clarke wrote: > [hmmm, let's try that again... not sure why gmail mangled my email] > > Hi John: > > The following import is causing that error. > >     from sqlalchemy.orm import session, Session > > In

Re: [sqlalchemy] Re: cherrypy SA 0.7 scoped_session

2011-12-08 Thread Diana Clarke
[hmmm, let's try that again... not sure why gmail mangled my email] Hi John: The following import is causing that error. from sqlalchemy.orm import session, Session In the all-in-one example you provided, you later go on to reassign 'session' and 'Session', replacing those imported values w

Re: [sqlalchemy] Re: cherrypy SA 0.7 scoped_session

2011-12-08 Thread Diana Clarke
Hi John: The following import is causing that error.     from sqlalchemy.orm import session, Session In the all-in-one example you provided, you later go on to reassign 'session' and 'Session', replacing those imported values with your own values.     Session = scoped_session(sessionmaker(bind=engi

[sqlalchemy] Re: cherrypy SA 0.7 scoped_session

2011-12-08 Thread John Hufnagle
Thanks Michael, Could not find a hidden Session object. So I broke it down into a problem that works/doesn't work based on files separation 1. If I place all of the code into one file all_in_one.py which contains the cherrypy startup, the SA init code and ORM object and the cherrypy REST resource