In API Logic Server, clients can make RESTful requests that 
cause SQLAlchemy reads.  These are subjected to authorization security using 
do_orm_execute (which is amazing, by the way).  These add filters to ensure 
proper access.  This is all fine.

But, when the client makes changes, these activate business logic, which 
needs to run *without* auth security.

My question is: how can my do_orm_execute event handler determine we are 
in/after after-flush state?  Sorry if I missed them, but I did not find 
variables method on session or transaction for this.

Thanks in advance,
Val

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/59922a81-8e2c-4575-87c8-e178a99c7a96n%40googlegroups.com.

Reply via email to