On Tue, Apr 8, 2008 at 2:33 PM, Ben Bangert <[EMAIL PROTECTED]> wrote:
> On Apr 8, 2008, at 2:19 PM, Mike Orr wrote:
>
>
> > request.environ is request scope, so it wouldn't work for stuff that
> > needs to persist between requests.  Like a connection to a Durus
> > daemon, which has to be thread local.
> >
>
>  Attach a thread-local object to 'g' then? That's what the Mako
> templateloader does in 0.9.7, and thats what we've been doing with the
> SQLAlchemy engine.

That's not what we've been doing with the SQLAlchemy engine.  The
current standard model puts it model.meta (a module).  The previous
model ("SQLAlchemy for people in a hurry") put it directly under
pylons.g without a threadlocal.


-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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