On Nov 22, 2:01 pm, Daniel Holth <[email protected]> wrote:
> This pitfall can be avoided by using SQLAlchemy properly.
>
> # Session is configured, but never reassigned:
> Session = orm.sessionmaker()
>
> def initialize(engine):
>     Session.configure(bind=engine)

I see what I was doing now; I had copied my initial code from the
sample project in "The Definitive Guide to Pylons", which does
reassign Session, before I fully understood how the Session object
works.

I'll update my app to follow the current Pylons template's approach.
Thank you both for your help.

--
Josh Kelley

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

Reply via email to