]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Added proxying of __contains__ and __iter__ methods for scoped sessions
authorAnts Aasma <ants.aasma@gmail.com>
Wed, 31 Oct 2007 12:14:22 +0000 (12:14 +0000)
committerAnts Aasma <ants.aasma@gmail.com>
Wed, 31 Oct 2007 12:14:22 +0000 (12:14 +0000)
CHANGES
lib/sqlalchemy/orm/scoping.py

diff --git a/CHANGES b/CHANGES
index d4f49e5d84d42cc336f3c2e80bf20fd4b61675b3..333589cc815ebdeada41f9d93c3b7a51c94c7d97 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -59,6 +59,8 @@ CHANGES
 - Fixed a truncation error when re-assigning a subset of a collection
   (obj.relation = obj.relation[1:]) [ticket:834]
 
+- Added proxying of __contains__ and __iter__ methods for scoped sessions.
+
 0.4.0
 -----
 
index b6bd5885c1d436916321236a93e8135119371a85..3bee9b0e9a07ca240030861eb634d014fe436792 100644 (file)
@@ -73,7 +73,7 @@ def instrument(name):
     def do(self, *args, **kwargs):
         return getattr(self.registry(), name)(*args, **kwargs)
     return do
-for meth in ('get', 'load', 'close', 'save', 'commit', 'update', 'flush', 'query', 'delete', 'merge', 'clear', 'refresh', 'expire', 'expunge', 'rollback', 'begin', 'begin_nested', 'connection', 'execute', 'scalar', 'get_bind', 'is_modified'):
+for meth in ('get', 'load', 'close', 'save', 'commit', 'update', 'flush', 'query', 'delete', 'merge', 'clear', 'refresh', 'expire', 'expunge', 'rollback', 'begin', 'begin_nested', 'connection', 'execute', 'scalar', 'get_bind', 'is_modified', '__contains__', '__iter__'):
     setattr(ScopedSession, meth, instrument(meth))
 
 def makeprop(name):