er thats a little weird, when you unpickle the object, have all the
relevant classes had the same Mappers set up on them ?  the _state
attribute is a class-level property accessor that will only be there
if the class has been set up with a mapper (as are all the other
properties for which youre looking for default values).  the actual
data for _state is in the __dict__ as "_<classname>__sa_attr_state".
 
Yeah, I definitely have the relevant classes set up the same when I pickle and unpickle the object, with the same mapper set up on both.

this is all class-level stuff thats not related to the instance being
in or out of a Session.


I know its class-level stuff, but what it has to do with being in or out of a Session is that you can't put it into the session if it doesn't have a _state attribute.

I will attempt to write a simple test case.

-Michael
-------------------------------------------------------------------------
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