On Wed, Feb 16, 2011 at 11:51 AM, Michael Bayer <[email protected]>wrote:

>
> On Feb 16, 2011, at 10:22 AM, Landreville wrote:
> > Is there a way to run a command at the beginning of every session,
> > before anything else is run?
>
> SessionExtension has an after_begin() hook for this purpose.
>
>
>
That is perfect -- except maybe it's too soon. Is there a way to run
something before the first non-select statement in the session?

The reason being I am running Pylons with repoze.what and repoze checks the
database for the username and then the controller action is run using the
same transaction that repoze.what looked up the username in.

If this isn't possible I will figure out a way to end the transaction
repoze.what uses.

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

Reply via email to