The changeset for that fix is:
http://trac.turbogears.org/changeset/3652
But basically the database configuration is in config/environment.py
and we need to call the confgure method that sets everything up for
us, rather than just setting bind on the DBSession class manually.
--Mark
--
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog
This is slightly adapted from your sample code in another thread.
And was run against a very recient checkout of DBSprockets.
This is good stuff, thanks!
--Mark
On Nov 24, 2007 7:06 PM, Mark Ramm <mark.mch...@gmail.com> wrote:
> Session is kinda magical. You don't need to instantiate the Session
> class, you can just classmethods which transparently proxy to a
> threadlocal instance (or if no threadlocal instance exists, create
> one). So, drop session = Session()
>
> I'm also wondering what you've got since we replaced Session with
> DBSession in the model...
>
> I've downloaded the dbsprockets code, and I'm willing to hack on it a
> bit to see if I can't help get this worked out, but it would be
> helpful to know how to run it.
>
> --Mark
>
>
> On Nov 23, 2007 12:02 AM, percious <ch...@percious.com> wrote:
> >