summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/attributes.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-04-24 11:55:04 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-04-24 11:55:04 -0400
commitf5c98d5470ba2d7ed42ed6c1298d760eb5765710 (patch)
tree0d76dfe9eec5630940aea1e66f82cb0fbc891fba /lib/sqlalchemy/orm/attributes.py
parent1bab44c2ba7bc3ce34b3936fad6f47a2af27351c (diff)
downloadsqlalchemy-f5c98d5470ba2d7ed42ed6c1298d760eb5765710.tar.gz
- [bug] The "passive" flag on Session.is_modified()
no longer has any effect. is_modified() in all cases looks only at local in-memory modified flags and will not emit any SQL or invoke loader callables/initializers. [ticket:2320]
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r--lib/sqlalchemy/orm/attributes.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py
index 9933a2f4d..7625ccead 100644
--- a/lib/sqlalchemy/orm/attributes.py
+++ b/lib/sqlalchemy/orm/attributes.py
@@ -52,6 +52,11 @@ indicating that the attribute had not been assigned to previously.
"""
)
+NO_CHANGE = util.symbol("NO_CHANGE",
+"""No callables or SQL should be emitted on attribute access
+and no state should change""", canonical=0
+)
+
CALLABLES_OK = util.symbol("CALLABLES_OK",
"""Loader callables can be fired off if a value
is not present.""", canonical=1