[sqlalchemy] Re: detached, pickled sqlalchemy collection object failing after server restart

2009-10-22 Thread rootsmith
Well, it appears I have answered my own question and, yes, it was a SQLAlchemy issue. I resolved the problem by explicitly compiling the mapping at the end of the model initialization: manager_mapper = orm.mapper(Manager, manager_table, ... etc. ... (all other dependent mappers)

[sqlalchemy] Re: detached, pickled sqlalchemy collection object failing after server restart

2009-10-22 Thread Michael Bayer
rootsmith wrote: Well, it appears I have answered my own question and, yes, it was a SQLAlchemy issue. I resolved the problem by explicitly compiling the mapping at the end of the model initialization: manager_mapper = orm.mapper(Manager, manager_table, ... etc. ... (all other dependent

[sqlalchemy] Re: detached, pickled sqlalchemy collection object failing after server restart

2009-10-22 Thread rootsmith
Thanks for the compile_mappers() call - that is a lot easier than calling compile() on all the individual mappers. What is very strange is that I can see at the point of my first calling on the object from the beaker session, I retrieve it and merge it successfully into the SQLAlchemy Session.