Hi All,

I'm using zope.sqlalchemy to commit a a SQLAlchemy session.
As part of that commit, I want to record the user making the change as an attribute of the changed object.

To do this, in a SessionExtension's before_flush method I do:

  user_id = authenticated_userid(get_current_request())

Now, the problem is that get_current_request() is returning None at this point.

Where and how is the lifecycle of the request object managed?

This feels like a bug to me, since the request should ideally be kept around until all the wsgi middlear ahead of it in the queue is done...

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
           - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to