On Jun 30, 2006, at 3:34 PM, Charles Duffy wrote:

> The attached patch modifies activemapper.Objectstore to do the  
> containment bit (which *does* resolve the initial issue I was  
> having); adds more extensive proxying, makes assignmapper go  
> through get_session() (is that valid for other context objects?),

No, use the "current" attribute. Actually, ObjectStore is a session  
proxy, so the get_session() method is effectively doing this:

session.get_session()

Just use the objectstore itself, or if you really need to get the  
context-current session do this:

objectstore._context.current


Ditto with _get_mapper_extension()

I'm also not sure why you modified schema.py and assignmapper.py. Are  
they expecting objectstore to be a SessionContext? If so, whatever is  
calling them should pass objectstore._context rather than objectstore  
itself.

Hope that helps.

~ Daniel


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to