#2265: Use `metadata.bind` rather than `db_session.configure` in `init_model`
------------------------+---------------------------------------------------
Reporter: pitrou | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.0rc1
Component: TurboGears | Version: 2.0b7
Severity: minor | Keywords:
------------------------+---------------------------------------------------
In the autogenerated `init_model()` method (in `model/__init__.py`),
replacing:
{{{
db_session.configure(bind=engine)
}}}
with:
{{{
metadata.bind = engine
}}}
allows to write `init_model(migrate_engine)` in sqlalchemy.migrate
scripts.
--
Ticket URL: <http://trac.turbogears.org/ticket/2265>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---