summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/session.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-04-04 19:08:05 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-04-04 19:08:05 -0400
commitf7bb3b17e6df09caa56c20c722364fc52edf7afc (patch)
treeb35d3ccf96f54836b000b7a3416782ef60fcb825 /lib/sqlalchemy/orm/session.py
parent60922f7a991cac6500c856868de0ab37f1203cc7 (diff)
downloadsqlalchemy-f7bb3b17e6df09caa56c20c722364fc52edf7afc.tar.gz
- the inspect interface is done, needs docs.
- start dressing up InstanceState for it's coming out, start moving internal things to be underscored within the lib
Diffstat (limited to 'lib/sqlalchemy/orm/session.py')
-rw-r--r--lib/sqlalchemy/orm/session.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py
index 14778705d..87968da82 100644
--- a/lib/sqlalchemy/orm/session.py
+++ b/lib/sqlalchemy/orm/session.py
@@ -835,7 +835,7 @@ class Session(object):
"""
for state in self.identity_map.all_states() + list(self._new):
- state.detach()
+ state._detach()
self.identity_map = self._identity_cls()
self._new = {}
@@ -1135,7 +1135,7 @@ class Session(object):
state.expire(state.dict, self.identity_map._modified)
elif state in self._new:
self._new.pop(state)
- state.detach()
+ state._detach()
@util.deprecated("0.7", "The non-weak-referencing identity map "
"feature is no longer needed.")
@@ -1177,11 +1177,11 @@ class Session(object):
def _expunge_state(self, state):
if state in self._new:
self._new.pop(state)
- state.detach()
+ state._detach()
elif self.identity_map.contains_state(state):
self.identity_map.discard(state)
self._deleted.pop(state, None)
- state.detach()
+ state._detach()
elif self.transaction:
self.transaction._deleted.pop(state, None)