dmiller wrote:
> 2. Switch the active UOW each time a window gains focus (error prone,
> messy)

Actually this is probably your best option.  because, its not just passing
the UOW to all explicit mapper operations, the UOW is used every time you
set an attribute on an object or append/delete from a list attribute.

If your "sessions" really do correspond with "window focus" then you would
have to match them up that way.  Just like the widgets on the screen
correspond to the window, so the individual data objects they represent
correspond to the UOW.  I gather your object-modify and commit()
operations are occuring within an event loop ?  Maybe you could extend the
event-loop system itself to always insure the correct UOW is selected ?

- mike



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to