If I have an object which can be created via either Foo(bar_id=3) or 
Foo(bar=Bar()), I'd like to have a way to inspect and manipulate it 
after references have been resolved (such that bar_id is available 
whether initial specification was via bar or bar_id) but before commit 
to the database.

Does such a mechanism exist? If not, where would I look at implementing 
it? I suppose that such hooks could be added by a MapperExtension if 
they don't already exist, but I'd like to know that I'm not overlooking 
something obvious beforehand.

Thanks!



_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to