Scott Graham wrote: > I'm doing this now: > > import elixir > from sqlalchemy.orm import scoped_session, sessionmaker > elixir.session = scoped_session(sessionmaker(autoflush=True, > transactional=True)) > from elixir import * > ... > > Is doing this sensible or is there a cleaner way to tell Elixir > instead?
This is a totally reasonable way to go about it, but you have a few other options. You can use the `using_options` statement to specify an alternate session, or you can place a module-level global `__session__` variable in your modules which refers to your manually created session. -- Jonathan LaCour http://cleverdevil.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLElixir" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlelixir?hl=en -~----------~----~----~----~------~----~------~--~---
