@validates and 'set' attribute events will only fire when the *user* sets a 
property (setattr), not when initially loaded by the orm.

Is there a way to intercept (for inspection) a scalar relationship property 
instance when it is loaded?  I don't think the 'load' event will work 
because I won't know if the current instance is being loaded in the context 
of setting an instrumented attribute.

For example:

If I have a parent object, I want to know when parent.childobj is populated 
by the orm framework (whether on a lazy load or joined load).

Is that possible?

Thanks in advance!

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to