`add()` and `add_all()` missing on` ScopedSession`

Issue #1118 resolved
Former user created an issue

Release 0.4.7 backported the add() and add_all() methods from the 0.5 branch as aliases to the Session object. However, they are not available on the ScopedSession object, which I created in my case with scoped_session(sessionmaker()), and as indicated by this error message:

AttributeError: 'ScopedSession' object has no attribute 'add'

I assume this can be fixed by adding the two method names to the tuple in line 100 in sqlalchemy/orm/scoping.py.

-Jochen Kupperschmidt

Comments (1)

  1. Log in to comment