Re: [Web-SIG] Using decorators to add objects in a thread-local store..

2008-07-16 Thread Etienne Robillard
On Tue, 15 Jul 2008 21:32:39 -0500 Ian Bicking <[EMAIL PROTECTED]> wrote: > Etienne Robillard wrote: > > > > Hi all, > > > > I'd like to have your input and comments on using decorators > > functions for adding extra options to the request.environ object. > > > > For instance, here's a decora

Re: [Web-SIG] Using decorators to add objects in a thread-local store..

2008-07-16 Thread Etienne Robillard
On Jul 15, 4:44 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote: > On Tue, Jul 15, 2008 at 1:42 PM, Etienne Robillard > > > > <[EMAIL PROTECTED]> wrote: > > > On Mon, 14 Jul 2008 16:09:18 -0400 > > Etienne Robillard <[EMAIL PROTECTED]> wrote: > > >> Hi all, > > >> I'd like to have your input and comment

Re: [Web-SIG] Using decorators to add objects in a thread-local store..

2008-07-15 Thread Ian Bicking
Etienne Robillard wrote: Hi all, I'd like to have your input and comments on using decorators functions for adding extra options to the request.environ object. For instance, here's a decorator whichs adds a "scoped" session object into request.environ: def with_session(engine=None): """

[Web-SIG] Using decorators to add objects in a thread-local store..

2008-07-14 Thread Etienne Robillard
Hi all, I'd like to have your input and comments on using decorators functions for adding extra options to the request.environ object. For instance, here's a decorator whichs adds a "scoped" session object into request.environ: def with_session(engine=None): """ Decorator function for