Ticket #1483: Elixir-0.4.0___init__.py.diff
| File Elixir-0.4.0___init__.py.diff, 0.7 kB (added by renier, 1 year ago) |
|---|
-
__init__.py
old new 18 18 19 19 import sqlalchemy 20 20 21 from sqlalchemy. ext.sessioncontext import SessionContext21 from sqlalchemy.orm import scoped_session 22 22 from sqlalchemy.types import * 23 23 24 24 from elixir.options import using_options, using_table_options, \ … … 58 58 # this only happens when the threadlocal extension is used 59 59 objectstore = sqlalchemy.objectstore 60 60 except AttributeError: 61 objectstore = Objectstore( SessionContext(sqlalchemy.orm.create_session))61 objectstore = Objectstore(scoped_session(sqlalchemy.orm.create_session)) 62 62 63 63 metadatas = set() 64 64