I ended up doing this in my model.py: activemapper.metadata = BoundMetaData(engine)
Since BoundMetaData, unlike the default DynamicMetaData, doesn't try to make everything thread-local, I don't have other TurboGears code (running in different threads) complaining that it can't find an engine even though my model.py called activemapper.metadata.connect(engine). _______________________________________________ Sqlalchemy-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

