Thanks for the code, your example runs without a problem.

I've managed to "locate" the error. In reality it doesn't have to do with 
InstrumentedList. The problem occurs when beaker pickle.load()s from its 
cache file (a pickled object in a file).
I get the following exception (which makes beaker stop loading the 
session): AttributeError: 'User' object has no attribute 
'_sa_instance_state'

If I try to load the file directly I get the same result.

I've been trying to google such error but all I get the reference to is 
that orm.mapper() should be run in the thread or process that is loading 
the pickled object. I tried loading "manually" (in a python console) my 
mappers and the trying to unpickle the object without success.

I cannot (at the moment) include a code example because it is a medium 
sized pylons project. I know that this was working with version 0.6, with 
orm.synonym; the main difference is that now I use @hybrid_property and 
version 0.7.4.

I will try to make a small project and try to reproduce the error, but if 
you have any idea of why is doing this I will appreciate it if you can lead 
me to a possible solution.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/Em-Xaxb5QFUJ.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to